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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151854
91177308-0d34-0410-b5e6-
96231b3b80d8
// contents.
II->Entry = &Entry;
- // If this is the '__experimental_modules_import' contextual keyword,
- // mark it as such.
- if (Name.equals("__experimental_modules_import"))
- II->setModulesImport(true);
-
return *II;
}
// 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);
}
//===----------------------------------------------------------------------===//