aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-05 01:53:39 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-05 01:53:39 +0000
commit3da736c1143126be19b253804b3b135ebcd3d6ff (patch)
treeec3d5e10f15d57bd7c81855f748b4b8a7ac14414 /include/clang/Lex/Preprocessor.h
parent4cc1a259328977c30aff3ecc1b9dc9002cac60ec (diff)
StringRefize Preprocessor::getIdentifierInfo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 3a401c999d..765c26cbc5 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/include/clang/Lex/Preprocessor.h
@@ -296,12 +296,8 @@ public:
/// pointers is preferred unless the identifier is already available as a
/// string (this avoids allocation and copying of memory to construct an
/// std::string).
- IdentifierInfo *getIdentifierInfo(const char *NameStart,
- const char *NameEnd) {
- return &Identifiers.get(NameStart, NameEnd);
- }
- IdentifierInfo *getIdentifierInfo(const char *NameStr) {
- return getIdentifierInfo(NameStr, NameStr+strlen(NameStr));
+ IdentifierInfo *getIdentifierInfo(llvm::StringRef Name) {
+ return &Identifiers.get(Name);
}
/// AddPragmaHandler - Add the specified pragma handler to the preprocessor.