Change ASTContext's LoadedModules map to be keyed by Identifiers, not strings.

No intended functionality change, but there's no reason to be performing
string lookups here.

Swift SVN r20902
This commit is contained in:
Jordan Rose
2014-08-01 18:03:47 +00:00
parent bf366de647
commit 4eebcb9853
12 changed files with 21 additions and 23 deletions

View File

@@ -311,7 +311,7 @@ Module *SerializedModuleLoader::loadModule(SourceLoc importLoc,
assert(moduleInputBuffer);
auto M = Module::create(moduleID.first, Ctx);
Ctx.LoadedModules[moduleID.first.str()] = M;
Ctx.LoadedModules[moduleID.first] = M;
(void)loadAST(*M, moduleID.second, std::move(moduleInputBuffer),
std::move(moduleDocInputBuffer), isFramework);