summaryrefslogtreecommitdiff
path: root/include/llvm/Value.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-28 22:30:52 +0000
committerDevang Patel <dpatel@apple.com>2009-07-28 22:30:52 +0000
commitdd04246fa2065e9f489ddbb1dcd5e52d251678a3 (patch)
tree1cdb95eb261058840ef247d57528975e26021882 /include/llvm/Value.h
parentb0d9c3e7fdc952ae7cbe169b01ccaf1b80329403 (diff)
downloadllvm-dd04246fa2065e9f489ddbb1dcd5e52d251678a3.tar.gz
llvm-dd04246fa2065e9f489ddbb1dcd5e52d251678a3.tar.bz2
llvm-dd04246fa2065e9f489ddbb1dcd5e52d251678a3.tar.xz
Clarify getName() comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r--include/llvm/Value.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index cc70ce13c0..f690f449a6 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -116,10 +116,10 @@ public:
/// 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