diff options
| author | David Blaikie <dblaikie@gmail.com> | 2013-07-25 21:19:01 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2013-07-25 21:19:01 +0000 |
| commit | 9260ed6c06c69e62730ab96b455395c497f5af31 (patch) | |
| tree | dcbdaef97f56e996b35a682cb9c220a76bb789d8 /clang/tools | |
| parent | 372c24d9f2c066c68c35567f2bd452ff18821af9 (diff) | |
| download | bcm5719-llvm-9260ed6c06c69e62730ab96b455395c497f5af31.tar.gz bcm5719-llvm-9260ed6c06c69e62730ab96b455395c497f5af31.zip | |
Don't forward all assembler arguments untouched to -cc1as
Use the same filtering for assembly arguments to -cc1as as we do for
-cc1, this allows a consistent (& more useful) diagnostic experience for
users (rather than getting an error from -cc1as (which a user shouldn't
really be thinking about) about --foo, they get an error from clang
about --foo in -Wa,)
I'm sort of surprised by the separation of -cc1as & the separate
argument handling, etc, but at least this removes a little bit of the
duplication.
llvm-svn: 187156
Diffstat (limited to 'clang/tools')
| -rw-r--r-- | clang/tools/driver/cc1as_main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/tools/driver/cc1as_main.cpp b/clang/tools/driver/cc1as_main.cpp index eec33d8f171..e8f4479dce1 100644 --- a/clang/tools/driver/cc1as_main.cpp +++ b/clang/tools/driver/cc1as_main.cpp @@ -206,8 +206,6 @@ bool AssemblerInvocation::CreateFromArgs(AssemblerInvocation &Opts, } } Opts.LLVMArgs = Args->getAllArgValues(OPT_mllvm); - if (Args->hasArg(OPT_fatal_warnings)) - Opts.LLVMArgs.push_back("-fatal-assembler-warnings"); Opts.OutputPath = Args->getLastArgValue(OPT_o); if (Arg *A = Args->getLastArg(OPT_filetype)) { StringRef Name = A->getValue(); @@ -233,8 +231,8 @@ bool AssemblerInvocation::CreateFromArgs(AssemblerInvocation &Opts, Opts.ShowInst = Args->hasArg(OPT_show_inst); // Assemble Options - Opts.RelaxAll = Args->hasArg(OPT_relax_all); - Opts.NoExecStack = Args->hasArg(OPT_no_exec_stack); + Opts.RelaxAll = Args->hasArg(OPT_mrelax_all); + Opts.NoExecStack = Args->hasArg(OPT_mno_exec_stack); return Success; } |

