[llvm-commits] CVS: llvm/include/llvm/Value.h
Chris Lattner
sabre at nondot.org
Thu Feb 15 10:54:16 PST 2007
Changes in directory llvm/include/llvm:
Value.h updated: 1.97 -> 1.98
---
Log message:
Add a new Value::getNameStr method, which is preferred over getName.
---
Diffs of the changes: (+2 -1)
Value.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.97 llvm/include/llvm/Value.h:1.98
--- llvm/include/llvm/Value.h:1.97 Wed Feb 14 21:39:17 2007
+++ llvm/include/llvm/Value.h Thu Feb 15 12:53:54 2007
@@ -87,7 +87,8 @@
// All values can potentially be named...
inline bool hasName() const { return Name != 0; }
- std::string getName() const;
+ std::string getName() const { return getNameStr(); }
+ std::string getNameStr() const;
ValueName *getValueName() const { return Name; }
void setName(const std::string &name);
More information about the llvm-commits
mailing list