OSDN Git Service

[llvm-mc] - Teach llvm-mc to generate zlib styled compression sections.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 27 May 2016 09:58:08 +0000 (09:58 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 27 May 2016 09:58:08 +0000 (09:58 +0000)
commitdd4101a976f90ca59037d10316bc78fc8a2b3f8a
tree76a0945a736c6d8a0f5b8ac3bbe5e2c9d30535e4
parent38080264564204007aed70899a31ba29986b2d4e
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270977 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAsmInfo.h
include/llvm/MC/MCSectionELF.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/MC/ELFObjectWriter.cpp
lib/MC/MCAsmInfo.cpp
test/MC/ELF/compression.s
tools/llvm-mc/llvm-mc.cpp