aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Utils/Cloning.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-01-27 19:58:47 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-01-27 19:58:47 +0000
commit5deb57c68552a85094b786dfdbd16e3744716733 (patch)
treeaa2bf0ea031999b19421e084aa7e6c58776a4318 /include/llvm/Transforms/Utils/Cloning.h
parent2d64ca09d4e1ea57ca07aef8c1c2276f38c4293a (diff)
downloadexternal_llvm-5deb57c68552a85094b786dfdbd16e3744716733.zip
external_llvm-5deb57c68552a85094b786dfdbd16e3744716733.tar.gz
external_llvm-5deb57c68552a85094b786dfdbd16e3744716733.tar.bz2
Don't bother with sprintf, just pass the Twine through.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/Cloning.h')
-rw-r--r--include/llvm/Transforms/Utils/Cloning.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Utils/Cloning.h b/include/llvm/Transforms/Utils/Cloning.h
index 7fbbef9..5f494fb 100644
--- a/include/llvm/Transforms/Utils/Cloning.h
+++ b/include/llvm/Transforms/Utils/Cloning.h
@@ -19,6 +19,7 @@
#define LLVM_TRANSFORMS_UTILS_CLONING_H
#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/Twine.h"
namespace llvm {
@@ -101,7 +102,7 @@ struct ClonedCodeInfo {
///
BasicBlock *CloneBasicBlock(const BasicBlock *BB,
DenseMap<const Value*, Value*> &ValueMap,
- const char *NameSuffix = "", Function *F = 0,
+ const Twine &NameSuffix = "", Function *F = 0,
ClonedCodeInfo *CodeInfo = 0);