forked from OSchip/llvm-project
Reland "Add support to -Wa,--version in clang""
This relands commit3cc3c0f835
with fixed test cases, which was reverted by commitbf2479c347
.
This commit is contained in:
parent
17095dc861
commit
76d9bc7278
|
@ -2552,6 +2552,8 @@ 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;
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
// Test version information.
|
||||
|
||||
// RUN: %clang -Wa,--version -c -fintegrated-as %s -o /dev/null \
|
||||
// RUN: | FileCheck --check-prefix=IAS %s
|
||||
// IAS: clang version
|
Loading…
Reference in New Issue