summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-22 20:56:09 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-22 20:56:09 +0000
commitfedd428d04715c5b9607457995e5b80da1efefdf (patch)
treec361d9387aaa8692ad248824971b7ca9d156aaec /clang/lib/Sema/Sema.cpp
parent48b7875e5521044006d931ef09b8cb0fcb62c1bf (diff)
downloadbcm5719-llvm-fedd428d04715c5b9607457995e5b80da1efefdf.tar.gz
bcm5719-llvm-fedd428d04715c5b9607457995e5b80da1efefdf.zip
Eliminate Sema::KnownFunctionIDs, so that Sema doesn't end up pulling
in a bunch of declarations from the PCH file. We're down to loading very few declarations in Carbon-prefixed "Hello, World!": *** PCH Statistics: 6/20693 types read (0.028995%) 7/59230 declarations read (0.011818%) 50/44914 identifiers read (0.111324%) 0/32954 statements read (0.000000%) 5/6187 macros read (0.080815%) llvm-svn: 69825
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 19155b6cc34..a5b30cc72ac 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -161,15 +161,6 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
GlobalNewDeleteDeclared(false),
CompleteTranslationUnit(CompleteTranslationUnit) {
- // Get IdentifierInfo objects for known functions for which we
- // do extra checking.
- IdentifierTable &IT = PP.getIdentifierTable();
-
- KnownFunctionIDs[id_NSLog] = &IT.get("NSLog");
- KnownFunctionIDs[id_NSLogv] = &IT.get("NSLogv");
- KnownFunctionIDs[id_asprintf] = &IT.get("asprintf");
- KnownFunctionIDs[id_vasprintf] = &IT.get("vasprintf");
-
StdNamespace = 0;
TUScope = 0;
if (getLangOptions().CPlusPlus)
OpenPOWER on IntegriCloud