diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-07-19 21:41:12 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-07-19 21:41:12 +0000 |
commit | 9c254184242e9fa8b6e2c4c11a83544fc5e22994 (patch) | |
tree | b9a51c053d9d00dcd8a052f7002dbac8932a747c /clang/lib/Sema/SemaDecl.cpp | |
parent | ea4ad5a416d8fb9451c81ecee77e0021aba2ec65 (diff) | |
download | bcm5719-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/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 2bf7356bf2a..042cffc8b4a 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -3115,7 +3115,7 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, // remain visible, a single bogus local redeclaration (which is // actually only a warning) could break all the downstream code. if (!New->getLexicalDeclContext()->isFunctionOrMethod()) - New->getIdentifier()->setBuiltinID(Builtin::NotBuiltin); + New->getIdentifier()->revertBuiltin(); return false; } |