commit | fd27ed9733eb135f1ad3eae2f0bd07b96b101964 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Feb 15 18:53:54 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Feb 15 18:53:54 2007 +0000 |
tree | 0e30ea67266837e47da0eb61feb3b635abb9a803 | |
parent | 5f1aacd1bd05853a1ed4fae5500d41224f890939 [diff] [blame] |
Add a new Value::getNameStr method, which is preferred over getName. llvm-svn: 34310
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp index c7af931..4d4944c 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/lib/VMCore/Value.cpp
@@ -112,7 +112,7 @@ return false; } -std::string Value::getName() const { +std::string Value::getNameStr() const { if (Name == 0) return ""; return std::string(Name->getKeyData(), Name->getKeyData()+Name->getKeyLength());