diff options
-rw-r--r-- | clang/include/clang/Basic/IdentifierTable.h | 5 | ||||
-rw-r--r-- | clang/lib/Basic/IdentifierTable.cpp | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/clang/include/clang/Basic/IdentifierTable.h b/clang/include/clang/Basic/IdentifierTable.h index fce79aa652c..cc0080b8779 100644 --- a/clang/include/clang/Basic/IdentifierTable.h +++ b/clang/include/clang/Basic/IdentifierTable.h @@ -460,11 +460,6 @@ public: // 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; } 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); } //===----------------------------------------------------------------------===// |