diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2011-05-19 18:42:29 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2011-05-19 18:42:29 +0000 |
commit | d793350dee89688f1cc939096dc60c3bc15c20fe (patch) | |
tree | ba37d370067b81d3d89c1c4357e8813c0cb51c62 /lib/Driver/Tools.cpp | |
parent | 42bef03a0f0462a95eb66b9e63feab0bf596134d (diff) |
Support -fatal-warnings for the assembler frontend
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 0086437052..c575afb95e 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -1020,6 +1020,9 @@ 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") { + CmdArgs.push_back("-mllvm"); + CmdArgs.push_back("-fatal-assembler-warnings"); } else { D.Diag(clang::diag::err_drv_unsupported_option_argument) << A->getOption().getName() << Value; |