Skip to content
Snippets Groups Projects
Commit 77755881 authored by Chris Lattner's avatar Chris Lattner
Browse files

add a helper.

llvm-svn: 52835
parent e43649fa
No related branches found
No related tags found
No related merge requests found
...@@ -93,6 +93,8 @@ public: ...@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment