diff options
author | Eric Christopher <echristo@gmail.com> | 2019-05-14 19:40:42 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2019-05-14 19:40:42 +0000 |
commit | 030b17db665a37ce4a359416c4c3ebe1f0354ea2 (patch) | |
tree | 92f00bfa1228a26895690c3d48be9b749ec33abb /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | ee51d851eae53c42505f95e59738450f48b7f345 (diff) | |
download | llvm-030b17db665a37ce4a359416c4c3ebe1f0354ea2.zip llvm-030b17db665a37ce4a359416c4c3ebe1f0354ea2.tar.gz llvm-030b17db665a37ce4a359416c4c3ebe1f0354ea2.tar.bz2 |
Temporarily revert "Change -gz and -Wa,--compress-debug-sections to use gABI compression (SHF_COMPRESSED)"
This affects users of older (pre 2.26) binutils in such a way that they can't necessarily
work around it as it doesn't support the compress option on the command line. Reverting
to unblock them and we can revisit whether to make this change now or fix how we want
to express the option.
This reverts commit bdb21337e6e1732c9895966449c33c408336d295/r360403.
llvm-svn: 360703
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index e9137bb..8a2dbcd 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1052,7 +1052,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, if (const Arg *A = Args.getLastArg(OPT_compress_debug_sections, OPT_compress_debug_sections_EQ)) { if (A->getOption().getID() == OPT_compress_debug_sections) { - Opts.setCompressDebugSections(llvm::DebugCompressionType::Z); + // TODO: be more clever about the compression type auto-detection + Opts.setCompressDebugSections(llvm::DebugCompressionType::GNU); } else { auto DCT = llvm::StringSwitch<llvm::DebugCompressionType>(A->getValue()) .Case("none", llvm::DebugCompressionType::None) |