aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-27 21:15:25 +0000
committerChris Lattner <sabre@nondot.org>2008-06-27 21:15:25 +0000
commitd0ebbff8a322b3322d5dbecf86d402f0835b76ce (patch)
treed0a4cb58eda23c86bb0336b3f319483dcb52c107
parentbb0e2487185e401c7fca63d55e59343e060912a2 (diff)
add a helper.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52835 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Value.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h
index 6d4d7cc74a..51a25cb689 100644
--- a/include/llvm/Value.h
+++ b/include/llvm/Value.h
@@ -93,6 +93,8 @@ public:
/// Note that names can have null characters within the string as well as at
/// their end. This always returns a non-null pointer.
const char *getNameStart() const;
+ /// getNameEnd - Return a pointer to the end of the name.
+ const char *getNameEnd() const { return getNameStart() + getNameLen(); }
/// isName - Return true if this value has the name specified by the provided
/// nul terminated string.