diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-23 18:50:53 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-23 18:50:53 +0000 |
commit | e6c42dd6d3cc1e0a8a11224a11bcfbd8c60c6fff (patch) | |
tree | 68d8ca09f495a8f4f68a11580dd1d04e5355b7e9 /include | |
parent | 8f51a62b41a425f7fe262ff20cee835129ecc072 (diff) |
Add llvm::Value::getNameRef, for help in API migration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Value.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 40b1dab295..720cc1935b 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -16,6 +16,7 @@ #include "llvm/AbstractTypeUser.h" #include "llvm/Use.h" +#include "llvm/ADT/StringRef.h" #include "llvm/Support/Casting.h" #include <iosfwd> #include <string> @@ -129,7 +130,7 @@ public: /// construct a string, they are very expensive and should be avoided. std::string getName() const { return getNameStr(); } std::string getNameStr() const; - + StringRef getNameRef() const; void setName(const std::string &name); void setName(const char *Name, unsigned NameLen); |