[llvm-commits] [llvm] r77383 - /llvm/trunk/include/llvm/Value.h
Devang Patel
dpatel at apple.com
Tue Jul 28 15:30:52 PDT 2009
Author: dpatel
Date: Tue Jul 28 17:30:52 2009
New Revision: 77383
URL: http://llvm.org/viewvc/llvm-project?rev=77383&view=rev
Log:
Clarify getName() comment.
Modified:
llvm/trunk/include/llvm/Value.h
Modified: llvm/trunk/include/llvm/Value.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Value.h?rev=77383&r1=77382&r2=77383&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Value.h (original)
+++ llvm/trunk/include/llvm/Value.h Tue Jul 28 17:30:52 2009
@@ -116,10 +116,10 @@
/// 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.
+ /// 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
More information about the llvm-commits
mailing list