projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb0e248
)
add a helper.
author
Chris Lattner
<sabre@nondot.org>
Fri, 27 Jun 2008 21:15:25 +0000
(21:15 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 27 Jun 2008 21:15:25 +0000
(21:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52835
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Value.h
patch
|
blob
|
history
diff --git
a/include/llvm/Value.h
b/include/llvm/Value.h
index 6d4d7cc74ac9bea27ed04d14d7e59f6f12fef077..51a25cb689509520c646128abb81c0f71d945a44 100644
(file)
--- 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.