Frontend: move ExplicitSwiftModules into SearchPathOptions, NFC

This commit is contained in:
Xi Ge
2020-06-02 12:38:12 -07:00
parent 9e88549199
commit 01c18d01c1
6 changed files with 10 additions and 13 deletions

View File

@@ -1201,12 +1201,12 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
subInvocation.getFrontendOptions().DisableImplicitModules = true;
GenericArgs.push_back("-disable-implicit-swift-modules");
}
subInvocation.getFrontendOptions().ExplicitSwiftModules =
LoaderOpts.explicitSwiftModules;
subInvocation.getSearchPathOptions().ExplicitSwiftModules =
searchPathOpts.ExplicitSwiftModules;
// Dependencies scanner shouldn't know any explict Swift modules to use.
// Adding these argumnets may not be necessary.
// FIXME: remove it?
for (auto EM: LoaderOpts.explicitSwiftModules) {
for (auto EM: searchPathOpts.ExplicitSwiftModules) {
GenericArgs.push_back(ArgSaver.save((llvm::Twine("-swift-module-file=") + EM).str()));
}
if (clangImporter) {