mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user