Add a comment on Value explaining the current getName() behavior.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77269 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-07-27 22:39:14 +00:00
parent 8fa3338ed2
commit 3d2a56d387

View File

@ -114,6 +114,12 @@ 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. This usage is deprecated, however, and
/// clients should not rely on it. If such behavior is needed, clients should
/// use 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