[bitcode] Don't allow -Xcc or -Xllvm arguments to bitcode backend jobs.

This is consistent with Clang, which rejects -mllvm options. All options
Clang /does/ accept should be covered by normal Swift flags.

rdar://problem/21245117

Swift SVN r29386
This commit is contained in:
Jordan Rose
2015-06-15 20:57:31 +00:00
parent 8cc285af3c
commit 6b59ff8dc5
2 changed files with 7 additions and 6 deletions

View File

@@ -346,10 +346,6 @@ Job *Swift::constructJob(const JobAction &JA, std::unique_ptr<JobList> Inputs,
Args.AddLastArg(Arguments, options::OPT_parse_stdlib);
// Pass through any subsystem flags.
Args.AddAllArgs(Arguments, options::OPT_Xllvm);
Args.AddAllArgs(Arguments, options::OPT_Xcc);
// Pass the optimization level down to the frontend.
Args.AddLastArg(Arguments, options::OPT_O_Group);