diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-03-01 22:53:32 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-03-01 22:53:32 +0000 |
commit | 946660332241d3524bd85fa4f63bf5041de44e24 (patch) | |
tree | 23cd79490dadcb9f26c0ae59c166f7fab78fb7f2 /clang/lib/Basic/IdentifierTable.cpp | |
parent | c4e5d0ccda9d9f2532ad7d6019dc9a4eedc11f5b (diff) | |
download | bcm5719-llvm-946660332241d3524bd85fa4f63bf5041de44e24.tar.gz bcm5719-llvm-946660332241d3524bd85fa4f63bf5041de44e24.zip |
Moving tagging of '__experimental_modules_import' IdentifierInfo out of
IndentifierTable::get() and into IdentifierTable's constructor.
This gets a 0.7% reducing on lexing time for Cocoa.h, and
about the same for PCH generation.
llvm-svn: 151854
Diffstat (limited to 'clang/lib/Basic/IdentifierTable.cpp')
-rw-r--r-- | clang/lib/Basic/IdentifierTable.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Basic/IdentifierTable.cpp b/clang/lib/Basic/IdentifierTable.cpp index 8945c2f47ca..7df52c65676 100644 --- a/clang/lib/Basic/IdentifierTable.cpp +++ b/clang/lib/Basic/IdentifierTable.cpp @@ -78,6 +78,10 @@ IdentifierTable::IdentifierTable(const LangOptions &LangOpts, // Populate the identifier table with info about keywords for the current // language. AddKeywords(LangOpts); + + + // Add the '_experimental_modules_import' contextual keyword. + get("__experimental_modules_import").setModulesImport(true); } //===----------------------------------------------------------------------===// |