[cfe-commits] r131671 - in /cfe/trunk: include/clang/Driver/CC1AsOptions.td lib/Driver/Tools.cpp

Joerg Sonnenberger joerg at bec.de
Thu May 19 13:46:39 PDT 2011


Author: joerg
Date: Thu May 19 15:46:39 2011
New Revision: 131671

URL: http://llvm.org/viewvc/llvm-project?rev=131671&view=rev
Log:
Correction for r131662, the GNU as option is --fatal-warnings.

Modified:
    cfe/trunk/include/clang/Driver/CC1AsOptions.td
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/include/clang/Driver/CC1AsOptions.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1AsOptions.td?rev=131671&r1=131670&r2=131671&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/CC1AsOptions.td (original)
+++ cfe/trunk/include/clang/Driver/CC1AsOptions.td Thu May 19 15:46:39 2011
@@ -78,5 +78,5 @@
 def no_exec_stack : Flag<"--noexecstack">,
     HelpText<"Mark the file as not needing an executable stack">;
 
-def fatal_warnings : Flag<"-fatal-warnings">,
+def fatal_warnings : Flag<"--fatal-warnings">,
     HelpText<"Consider warnings as errors">;

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=131671&r1=131670&r2=131671&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu May 19 15:46:39 2011
@@ -1020,7 +1020,7 @@
           // Do nothing, this is the default and we don't support anything else.
         } else if (Value == "-L") {
           CmdArgs.push_back("-msave-temp-labels");
-        } else if (Value == "-fatal-warnings") {
+        } else if (Value == "--fatal-warnings") {
           CmdArgs.push_back("-mllvm");
           CmdArgs.push_back("-fatal-assembler-warnings");
         } else {





More information about the cfe-commits mailing list