add a helper.

llvm-svn: 52835
This commit is contained in:
Chris Lattner 2008-06-27 21:15:25 +00:00
parent e43649fa62
commit 7775588132
1 changed files with 2 additions and 0 deletions

View File

@ -93,6 +93,8 @@ public:
/// Note that names can have null characters within the string as well as at /// Note that names can have null characters within the string as well as at
/// their end. This always returns a non-null pointer. /// their end. This always returns a non-null pointer.
const char *getNameStart() const; 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 /// isName - Return true if this value has the name specified by the provided
/// nul terminated string. /// nul terminated string.