Teach the frontend how to pass through -Xllvm commands.

This patch allows you to pass through commands to llvm from the driver so now
one can when compiling swift files get debug messages!

Swift SVN r13761
This commit is contained in:
Michael Gottesman
2014-02-10 22:49:56 +00:00
parent c24a6a7b46
commit f88bc1ed3e
5 changed files with 25 additions and 0 deletions

View File

@@ -455,6 +455,7 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
Opts.EnableSourceImport = Args.hasArg(OPT_enable_source_import);
Opts.SILSerializeAll = Args.hasArg(OPT_sil_serialize_all);
Opts.LLVMArgs = Args.getAllArgValues(OPT_Xllvm);
return false;
}