diff options
| author | Devang Patel <dpatel@apple.com> | 2009-07-28 22:30:52 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2009-07-28 22:30:52 +0000 |
| commit | e2d3dd66f1dffa7ffa5ee321b02674a1dec93d1c (patch) | |
| tree | 4605fe732402dd78dad8e1686ca90754886f667f /llvm | |
| parent | 15349f81fb144c6cecca11559cd567735d5132c8 (diff) | |
| download | bcm5719-llvm-e2d3dd66f1dffa7ffa5ee321b02674a1dec93d1c.tar.gz bcm5719-llvm-e2d3dd66f1dffa7ffa5ee321b02674a1dec93d1c.zip | |
Clarify getName() comment.
llvm-svn: 77383
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Value.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Value.h b/llvm/include/llvm/Value.h index cc70ce13c08..f690f449a64 100644 --- a/llvm/include/llvm/Value.h +++ b/llvm/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 |

