aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-11-15 18:30:12 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-11-15 18:30:12 +0000
commit2bbb7e3ca609dcd2eb2ae3b98d85fe002baf653e (patch)
tree2eeef0c0afa8c23cf8d7142dac25a5008258bc75 /include
parent2774dc085d36c2097e080e2e0ea46a7e49be37af (diff)
Remove Value::getNameStr. It has been deprecated for a while and provides no additional value over getName().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Value.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index a71e2fdefd..9b47143b7f 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -117,19 +117,8 @@ public:
/// getName() - Return a constant reference to the value's name. This is cheap
/// and guaranteed to return the same reference as long as the value is not
/// modified.
- ///
- /// This is currently guaranteed to return a StringRef for which data() points
- /// to a valid null terminated string. The use of StringRef.data() is
- /// deprecated here, however, and clients should not rely on it. If such
- /// behavior is needed, clients should use expensive getNameStr(), or switch
- /// to an interface that does not depend on null termination.
StringRef getName() const;
- /// getNameStr() - Return the name of the specified value, *constructing a
- /// string* to hold it. This is guaranteed to construct a string and is very
- /// expensive, clients should use getName() unless necessary.
- std::string getNameStr() const;
-
/// setName() - Change the name of the value, choosing a new unique name if
/// the provided name is taken.
///