aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-11 00:37:27 +0000
committerChris Lattner <sabre@nondot.org>2007-02-11 00:37:27 +0000
commit7216811ea22d68cbf8df092cda8e64e13e394ac8 (patch)
tree082365f88793cd0663d52b51cf66c064d4ec33be /include/llvm/Value.h
parent9cc2d3dce87c2f4666a5d6a97321d865ade930da (diff)
downloadexternal_llvm-7216811ea22d68cbf8df092cda8e64e13e394ac8.tar.gz
external_llvm-7216811ea22d68cbf8df092cda8e64e13e394ac8.tar.bz2
external_llvm-7216811ea22d68cbf8df092cda8e64e13e394ac8.zip
add a helper method: Value::takeName
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 63af0f747d..3c072e0d67 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -88,6 +88,10 @@ public:
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