[llvm-commits] CVS: llvm/include/llvm/Value.h
Chris Lattner
sabre at nondot.org
Sat Feb 10 16:37:47 PST 2007
Changes in directory llvm/include/llvm:
Value.h updated: 1.91 -> 1.92
---
Log message:
add a helper method: Value::takeName
---
Diffs of the changes: (+4 -0)
Value.h | 4 ++++
1 files changed, 4 insertions(+)
Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.91 llvm/include/llvm/Value.h:1.92
--- llvm/include/llvm/Value.h:1.91 Mon Feb 5 14:47:19 2007
+++ llvm/include/llvm/Value.h Sat Feb 10 18:37:27 2007
@@ -88,6 +88,10 @@
inline const std::string &getName() const { return Name; }
void setName(const std::string &name);
+
+ /// takeName - transfer the name from V to this value, setting V's name to
+ /// empty. It is an error to call V->takeName(V).
+ void takeName(Value *V);
/// replaceAllUsesWith - Go through the uses list for this definition and make
/// each use point to "V" instead of "this". After this completes, 'this's
More information about the llvm-commits
mailing list