aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 40b1dab..720cc19 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);