Distribute Module's lookup cache to its subclasses.

Each one has a different kind of lookup cache anyway, and there's no real
reason to have them share storage at the cost of type-safety.

Swift SVN r9242
This commit is contained in:
Jordan Rose
2013-10-12 00:08:09 +00:00
parent ad75aa5021
commit 1ecf1fb593
7 changed files with 100 additions and 93 deletions

View File

@@ -119,7 +119,7 @@ Module *SerializedModuleLoader::loadModule(SourceLoc importLoc,
}
assert(inputFile);
std::string DebugModuleName = inputFile->getBufferIdentifier();
StringRef DebugModuleName = inputFile->getBufferIdentifier();
std::unique_ptr<ModuleFile> loadedModuleFile;
ModuleStatus err = ModuleFile::load(std::move(inputFile), loadedModuleFile);