summaryrefslogtreecommitdiff
path: root/include/llvm/Metadata.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-01-12 18:57:56 +0000
committerDevang Patel <dpatel@apple.com>2010-01-12 18:57:56 +0000
commitd77fdba5737ee71b63681160fba5b2fc200583f4 (patch)
tree439a3bebb3a363451b240d917cd313ed5e1a9270 /include/llvm/Metadata.h
parent26028f27ddd132b3284943e11aca130c2911abc4 (diff)
downloadllvm-d77fdba5737ee71b63681160fba5b2fc200583f4.tar.gz
llvm-d77fdba5737ee71b63681160fba5b2fc200583f4.tar.bz2
llvm-d77fdba5737ee71b63681160fba5b2fc200583f4.tar.xz
Use Twine, instead of StringRef, for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93249 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Metadata.h')
-rw-r--r--include/llvm/Metadata.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h
index f490bad2cc..194de47ffe 100644
--- a/include/llvm/Metadata.h
+++ b/include/llvm/Metadata.h
@@ -194,10 +194,10 @@ class NamedMDNode : public Value, public ilist_node<NamedMDNode> {
void setParent(Module *M) { Parent = M; }
protected:
- explicit NamedMDNode(LLVMContext &C, StringRef N, MDNode*const *Vals,
+ explicit NamedMDNode(LLVMContext &C, const Twine &N, MDNode*const *Vals,
unsigned NumVals, Module *M = 0);
public:
- static NamedMDNode *Create(LLVMContext &C, StringRef N,
+ static NamedMDNode *Create(LLVMContext &C, const Twine &N,
MDNode *const *MDs,
unsigned NumMDs, Module *M = 0) {
return new NamedMDNode(C, N, MDs, NumMDs, M);
@@ -229,7 +229,7 @@ public:
void addOperand(MDNode *M);
/// setName - Set the name of this named metadata.
- void setName(StringRef Name);
+ void setName(const Twine &NewName);
/// getName - Return a constant reference to this named metadata's name.
StringRef getName() const;