diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-12 18:52:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-12 18:52:59 +0000 |
commit | 042ad36871d67a2db48bf41a8dbde3a5676fc96f (patch) | |
tree | 1b689aa7698ce6d4e4b908987c6048815195c6b1 /include/llvm | |
parent | 34a451ddc814e97945b3dbd8c730cfc6d0a520bb (diff) |
Add new setName accessor which doesn't require creating a string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Value.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index fa36706114..be751d5f63 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -91,6 +91,7 @@ public: ValueName *getValueName() const { return Name; } void setName(const std::string &name); + void setName(const char *Name, unsigned NameLen); /// takeName - transfer the name from V to this value, setting V's name to /// empty. It is an error to call V->takeName(V). |