Driver: Suppression support for -Wa,--compress-debug-sections
(to go with existing suppression of -Wa,-compress-debug-sections)
llvm-svn: 199822
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 699d7cf..ec2fc93 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -1699,7 +1699,8 @@
CmdArgs.push_back("-fatal-assembler-warnings");
} else if (Value == "--noexecstack") {
CmdArgs.push_back("-mnoexecstack");
- } else if (Value == "-compress-debug-sections") {
+ } else if (Value == "-compress-debug-sections" ||
+ Value == "--compress-debug-sections") {
D.Diag(diag::warn_missing_debug_compression);
} else if (Value.startswith("-I")) {
CmdArgs.push_back(Value.data());