[frontend] Moved FrameworkSearchPaths from CompilerInvocation to SearchPathOptions.

Swift SVN r11216
This commit is contained in:
Connor Wakamo
2013-12-12 22:36:42 +00:00
parent d9b9d4e7b4
commit 9a1c706be7
3 changed files with 10 additions and 7 deletions

View File

@@ -127,6 +127,11 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts, ArgList &Args,
Opts.ImportSearchPaths.push_back(A->getValue());
}
for (const Arg *A : make_range(Args.filtered_begin(OPT_F),
Args.filtered_end())) {
Opts.FrameworkSearchPaths.push_back(A->getValue());
}
// Opts.RuntimeIncludePath is set by calls to
// CompilerInvocation::setRuntimeIncludePath().
// TODO: improve the handling of RuntimeIncludePath.
@@ -186,10 +191,6 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
setTargetTriple(InputArg->getValue());
break;
case OPT_F:
FrameworkSearchPaths.push_back(InputArg->getValue());
break;
case OPT_sdk:
setSDKPath(InputArg->getValue());
break;