[clang] bf2479c - Revert "Add support to -Wa,--version in clang"
Nick Desaulniers via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 31 17:02:55 PDT 2021
Author: Nick Desaulniers
Date: 2021-03-31T17:02:13-07:00
New Revision: bf2479c347c8ca88fefdb144d8bae0a7a4231e2a
URL: https://github.com/llvm/llvm-project/commit/bf2479c347c8ca88fefdb144d8bae0a7a4231e2a
DIFF: https://github.com/llvm/llvm-project/commit/bf2479c347c8ca88fefdb144d8bae0a7a4231e2a.diff
LOG: Revert "Add support to -Wa,--version in clang"
This reverts commit 3cc3c0f8352ec33ca2f2636f94cb1d85fc57ac16.
Breaks non-linux platforms.
https://reviews.llvm.org/D99556#2662706
Signed-off-by: Nick Desaulniers <ndesaulniers at google.com>
Added:
Modified:
clang/lib/Driver/ToolChains/Clang.cpp
Removed:
clang/test/Driver/as-version.s
################################################################################
diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
index 9d3c725198f4d..804f528838c58 100644
--- a/clang/lib/Driver/ToolChains/Clang.cpp
+++ b/clang/lib/Driver/ToolChains/Clang.cpp
@@ -2549,8 +2549,6 @@ static void CollectArgsForIntegratedAssembler(Compilation &C,
// -fdebug-compilation-dir (without '=') here.
CmdArgs.push_back("-fdebug-compilation-dir");
CmdArgs.push_back(Value.data());
- } else if (Value == "--version") {
- D.PrintVersion(C, llvm::outs());
} else {
D.Diag(diag::err_drv_unsupported_option_argument)
<< A->getOption().getName() << Value;
diff --git a/clang/test/Driver/as-version.s b/clang/test/Driver/as-version.s
deleted file mode 100644
index 9d2801e4ee379..0000000000000
--- a/clang/test/Driver/as-version.s
+++ /dev/null
@@ -1,9 +0,0 @@
-// Test version information.
-
-// RUN: %clang -Wa,--version -c -fintegrated-as %s -o /dev/null \
-// RUN: | FileCheck --check-prefix=IAS %s
-// IAS: clang version
-
-// RUN: %clang -Wa,--version -c -fno-integrated-as %s -o /dev/null \
-// RUN: | FileCheck --check-prefix=GAS %s
-// GAS-NOT: clang
More information about the cfe-commits
mailing list