[frontend] Moved ImportSearchPaths out of CompilerInvocation/ASTContext and into SearchPathOptions.

Also updated findModule() in SourceLoader.cpp and SerializedModuleLoader.cpp to get the ImportSearchPaths from the ASTContext’s SearchPathOpts, instead of directly from the ASTContext.

Swift SVN r11214
This commit is contained in:
Connor Wakamo
2013-12-12 22:15:58 +00:00
parent 86b4a3b049
commit 1ecc5cc3e6
7 changed files with 11 additions and 15 deletions

View File

@@ -75,7 +75,7 @@ static llvm::error_code findModule(ASTContext &ctx, AccessPathElem moduleID,
}
// If we fail, search each import search path.
for (auto Path : ctx.ImportSearchPaths) {
for (auto Path : ctx.SearchPathOpts.ImportSearchPaths) {
inputFilename = Path;
llvm::sys::path::append(inputFilename, moduleFilename.str());
err = llvm::MemoryBuffer::getFile(inputFilename.str(), bufferRef);