[driver] Added support for -Xfrontend, which passes arguments through to the frontend.

Swift SVN r11166
This commit is contained in:
Connor Wakamo
2013-12-12 01:14:06 +00:00
parent a3bb62d619
commit 85c2afcd90
2 changed files with 8 additions and 1 deletions

View File

@@ -101,7 +101,11 @@ std::unique_ptr<Job> Swift::constructJob(const JobAction &JA,
// Set the SDK for the frontend.
Args.AddLastArg(Arguments, options::OPT_sdk);
// Pass through the values passed to -Xfrontend.
Args.AddAllArgValues(Arguments, options::OPT_Xfrontend);
// Add the output file argument.
Arguments.push_back("-o");
Arguments.push_back(Output->getFilename().data());