[ModuleInterface] Add a TextualInterfaceModuleLoader to ASTContext.

This commit is contained in:
Graydon Hoare
2018-10-05 13:59:42 -07:00
parent 6ea9accbed
commit bf90c1ed08

View File

@@ -324,6 +324,12 @@ bool CompilerInstance::setUpModuleLoaders() {
}
Context->addModuleLoader(std::move(clangImporter), /*isClang*/ true);
}
{
auto TIML = TextualInterfaceModuleLoader::create(*Context,
ModuleCachePath,
getDependencyTracker());
Context->addModuleLoader(std::move(TIML));
}
return false;
}