mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user