forked from OSchip/llvm-project
[cc1as] Remove -Wa,--compress-debug-sections=zlib-gnu
It's obsoleted and unlikely used. See D117744.
This commit is contained in:
parent
35d15222c0
commit
6bc20eb134
|
@ -694,7 +694,7 @@ void tools::gnutools::Assembler::ConstructJob(Compilation &C,
|
|||
CmdArgs.push_back("--compress-debug-sections");
|
||||
} else {
|
||||
StringRef Value = A->getValue();
|
||||
if (Value == "none" || Value == "zlib" || Value == "zlib-gnu") {
|
||||
if (Value == "none" || Value == "zlib") {
|
||||
CmdArgs.push_back(
|
||||
Args.MakeArgString("--compress-debug-sections=" + Twine(Value)));
|
||||
} else {
|
||||
|
|
|
@ -27,10 +27,6 @@
|
|||
// RUN: %clang -### -target i686-unknown-linux-gnu -fno-integrated-as -gz=zlib -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_ZLIB %s
|
||||
// CHECK-OPT_GZ_EQ_ZLIB: "--compress-debug-sections=zlib"
|
||||
|
||||
// RUN: %clang -### -target i686-unknown-linux-gnu -fno-integrated-as -gz=zlib-gnu -x assembler -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_ZLIB_GNU %s
|
||||
// RUN: %clang -### -target i686-unknown-linux-gnu -fno-integrated-as -gz=zlib-gnu -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_ZLIB_GNU %s
|
||||
// CHECK-OPT_GZ_EQ_ZLIB_GNU: "--compress-debug-sections=zlib-gnu"
|
||||
|
||||
// RUN: %clang -### -target i686-unknown-linux-gnu -fno-integrated-as -gz=invalid -x assembler -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_INVALID %s
|
||||
// RUN: %clang -### -target i686-unknown-linux-gnu -fno-integrated-as -gz=invalid -c %s 2>&1 | FileCheck -check-prefix CHECK-OPT_GZ_EQ_INVALID %s
|
||||
// CHECK-OPT_GZ_EQ_INVALID: error: unsupported argument 'invalid' to option 'gz='
|
||||
|
|
|
@ -228,7 +228,6 @@ bool AssemblerInvocation::CreateFromArgs(AssemblerInvocation &Opts,
|
|||
llvm::StringSwitch<llvm::DebugCompressionType>(A->getValue())
|
||||
.Case("none", llvm::DebugCompressionType::None)
|
||||
.Case("zlib", llvm::DebugCompressionType::Z)
|
||||
.Case("zlib-gnu", llvm::DebugCompressionType::GNU)
|
||||
.Default(llvm::DebugCompressionType::None);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue