OSDN Git Service

Revert r270977 ([llvm-mc] - Teach llvm-mc to generate zlib styled compression sections.)
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 27 May 2016 10:06:16 +0000 (10:06 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 27 May 2016 10:06:16 +0000 (10:06 +0000)
commit8ab5c74bc01edc4f29fb26a6269794adc4acc0a4
tree47ed8277aa54ef8c0dcf57d423ac85a104fd4a11
parentdd4101a976f90ca59037d10316bc78fc8a2b3f8a
Revert r270977 ([llvm-mc] - Teach llvm-mc to generate zlib styled compression sections.)

It broke buildbot:
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/13585/steps/build/logs/stdio

Initial commit message:
[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@270978 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