[llvm-commits] [llvm] r52835 - /llvm/trunk/include/llvm/Value.h
Chris Lattner
sabre at nondot.org
Fri Jun 27 14:15:25 PDT 2008
Author: lattner
Date: Fri Jun 27 16:15:25 2008
New Revision: 52835
URL: http://llvm.org/viewvc/llvm-project?rev=52835&view=rev
Log:
add a helper.
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=52835&r1=52834&r2=52835&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Value.h (original)
+++ llvm/trunk/include/llvm/Value.h Fri Jun 27 16:15:25 2008
@@ -93,6 +93,8 @@
/// 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.
More information about the llvm-commits
mailing list