mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-22 05:51:42 +00:00
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:
parent
8fa3338ed2
commit
3d2a56d387
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user