Correction for r131662, the GNU as option is --fatal-warnings.

llvm-svn: 131671
This commit is contained in:
Joerg Sonnenberger
2011-05-19 20:46:39 +00:00
parent cf5f2f41ba
commit 3028e46e57
2 changed files with 2 additions and 2 deletions

View File

@@ -78,5 +78,5 @@ def relax_all : Flag<"-relax-all">,
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">;

View File

@@ -1020,7 +1020,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// 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 {