It involves a hashtable lookup when the Value has a name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290695
91177308-0d34-0410-b5e6-
96231b3b80d8
public:
/// \brief 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 guaranteed to return the same reference as long as the value is not
+ /// modified. If the value has a name, this does a hashtable lookup, so it's
+ /// not free.
StringRef getName() const;
/// \brief Change the name of the value.