DebugInfo: Support for compressed debug info sections

Press ? to show keyboard shortcuts.
Auditors
grosbach
H23 MC code reviews Triggered Audit
Committed
dblaikieMar 27 2014, 1:45 PM
Parents
rL204957: DebugInfo: TargetOptions/MCAsmInfo support for compressed debug info sections
Branches
Unknown
Tags
Unknown
Description

DebugInfo: Support for compressed debug info sections

  1. When creating a .debug_* section and instead create a .zdebug_ section.
  2. When creating a fragment in a .zdebug_* section, make it a compressed fragment.
  3. When computing the size of a compressed section, compress the data and use the size of the compressed data.
  4. Emit the compressed bytes.

Also, check that only if a section has a compressed fragment, then that
is the only fragment in the section.

Assert-fail if the fragment's data is modified after it is compressed.

Initial review on llvm-commits by Eric Christopher and Rafael Espindola.

rL204958

llvm/trunk/include/llvm/MC/MCAssembler.h

Loading...

llvm/trunk/lib/MC/MCAsmInfo.cpp

Loading...

llvm/trunk/lib/MC/MCAssembler.cpp

Loading...

llvm/trunk/lib/MC/MCContext.cpp

Loading...

llvm/trunk/lib/MC/MCObjectStreamer.cpp

Loading...

llvm/trunk/test/MC/ELF/compression.s

Loading...

llvm/trunk/tools/llvm-mc/llvm-mc.cpp

Loading...

Add Comment