From 48dcd2b8061e433a0a7406cbf2a93e0ef4e45541 Mon Sep 17 00:00:00 2001 From: George Rimar Date: Fri, 27 May 2016 09:58:08 +0000 Subject: [llvm-mc] - Teach llvm-mc to generate zlib styled compression sections. This patch is strongly based on previously reverted D20331. (because of gnuutils < 2.26 does not support compressed debug sections in non zlib-gnu style) Difference that this patch supports both zlib and zlib-gnu styles. -compress-debug-sections option now supports next values: -compress-debug-sections=zlib-gnu -compress-debug-sections=zlib -compress-debug-sections=none Previously specifying -compress-debug-sections enabled zlib-gnu compression, so anyone can put "-compress-debug-sections=zlib-gnu" to restore the behavior that was before this patch for case when compression was enabled. Differential revision: http://reviews.llvm.org/D20676 llvm-svn: 270977 --- llvm/lib/CodeGen/LLVMTargetMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 3be8af873d4..2f7f8dfe646 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -71,7 +71,7 @@ void LLVMTargetMachine::initAsmInfo() { TmpAsmInfo->setUseIntegratedAssembler(false); if (Options.CompressDebugSections) - TmpAsmInfo->setCompressDebugSections(true); + TmpAsmInfo->setCompressDebugSections(DebugCompressionType::DCT_ZlibGnu); AsmInfo = TmpAsmInfo; } -- cgit v1.2.3