forked from OSchip/llvm-project
Add a comment on Value explaining the current getName() behavior.
llvm-svn: 77269
This commit is contained in:
parent
0e0189d64d
commit
30ab4a9fdc
|
@ -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…
Reference in New Issue