[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:
Connor Wakamo
2013-12-14 01:44:12 +00:00
parent 7e56d75a1e
commit f203e1fd96
3 changed files with 10 additions and 7 deletions

View File

@@ -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;
}
}