OSDN Git Service

Recommit 270977 - [llvm-mc] - Teach llvm-mc to generate zlib styled compression sections.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 27 May 2016 12:27:32 +0000 (12:27 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 27 May 2016 12:27:32 +0000 (12:27 +0000)
commitec285af61c84f5cf03052a4e5e29c7cd58270746
treeca52bff3f526eb45a517509a3e0a2066656ef1bf
parent0ad6107994372f3d9475a891074e2c9a609da23d
Recommit 270977 - [llvm-mc] - Teach llvm-mc to generate zlib styled compression sections.

Fix: updated clang code which was not updated by mistake.

Original 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@270987 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