mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[frontend] Moved ModuleSourceListPath from CompilerInvocation to FrontendOptions.
Also moved the handling of -module-source-list from the loop to ParseFrontendArgs. Swift SVN r11290
This commit is contained in:
@@ -69,6 +69,10 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
Opts.InputFilenames.push_back(A->getValue());
|
||||
}
|
||||
|
||||
if (const Arg *A = Args.getLastArg(OPT_module_source_list)) {
|
||||
Opts.ModuleSourceListPath = A->getValue();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -221,10 +225,6 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
|
||||
case OPT_framework:
|
||||
addLinkLibrary(InputArg->getValue(), LibraryKind::Framework);
|
||||
break;
|
||||
|
||||
case OPT_module_source_list:
|
||||
setModuleSourceListPath(InputArg->getValue());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user