aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ProfileData/CoverageMappingTest.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-10-12 22:36:31 +0000
committerRui Ueyama <ruiu@google.com>2016-10-12 22:36:31 +0000
commit05384080df67096cb43885df900745c932b2fd3c (patch)
tree2e9a8d88158a9709ae6beb2531ddeb3346e8b627 /llvm/unittests/ProfileData/CoverageMappingTest.cpp
parent3137c81e5649afc3d52d15da5ac4357be7757510 (diff)
downloadllvm-05384080df67096cb43885df900745c932b2fd3c.zip
llvm-05384080df67096cb43885df900745c932b2fd3c.tar.gz
llvm-05384080df67096cb43885df900745c932b2fd3c.tar.bz2
Support GNU-style ZLIB-compressed input sections.
Previously, we supported only SHF_COMPRESSED sections because it's new and it's the ELF standard. But there are object files compressed in the GNU style out there, so we had to support it. Sections compressed in the GNU style start with ".zdebug_" and contain different headers than the ELF standard's one. In this patch, getRawCompressedData is responsible to handle it. A tricky thing about GNU-style compressed sections is that we have to rename them when creating output sections. ".zdebug_" prefix implies the section is compressed. We need to rename ".zdebug_" ".debug" because our output sections are not compressed. We do that in this patch. llvm-svn: 284068
Diffstat (limited to 'llvm/unittests/ProfileData/CoverageMappingTest.cpp')
0 files changed, 0 insertions, 0 deletions