summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/Parser.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-07-19 21:41:12 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-07-19 21:41:12 +0000
commit9c254184242e9fa8b6e2c4c11a83544fc5e22994 (patch)
treeb9a51c053d9d00dcd8a052f7002dbac8932a747c /clang/lib/Parse/Parser.cpp
parentea4ad5a416d8fb9451c81ecee77e0021aba2ec65 (diff)
downloadbcm5719-llvm-9c254184242e9fa8b6e2c4c11a83544fc5e22994.tar.gz
bcm5719-llvm-9c254184242e9fa8b6e2c4c11a83544fc5e22994.zip
[modules] Don't save uninteresting identifiers, and don't consider identifiers
to be interesting just because they are the name of a builtin. Reduces the size of an empty module by over 80% (~100KB). llvm-svn: 242650
Diffstat (limited to 'clang/lib/Parse/Parser.cpp')
-rw-r--r--clang/lib/Parse/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index e76f767786f..3c89df99243 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -1489,7 +1489,7 @@ bool Parser::TryKeywordIdentFallback(bool DisableKeyword) {
<< PP.getSpelling(Tok)
<< DisableKeyword;
if (DisableKeyword)
- Tok.getIdentifierInfo()->RevertTokenIDToIdentifier();
+ Tok.getIdentifierInfo()->revertTokenIDToIdentifier();
Tok.setKind(tok::identifier);
return true;
}
OpenPOWER on IntegriCloud