diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-05-24 09:28:36 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-05-24 09:28:36 +0000 |
commit | 6bcbf4c572c25b066bd4dd1592ddbe2268b43406 (patch) | |
tree | ba69b074a2f480ad23372beae89a48bcf7c23c8d /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 13a49374048c0d9e1600cda96f181d07ce732042 (diff) | |
download | bcm5719-llvm-6bcbf4c572c25b066bd4dd1592ddbe2268b43406.tar.gz bcm5719-llvm-6bcbf4c572c25b066bd4dd1592ddbe2268b43406.zip |
[llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.
Before this llvm-dwarfdump only recognized zlib-gnu compression style of headers,
this patch adds support for zlib style.
It looks reasonable to support both styles for dumping,
even if we are not going to suport generating of deprecated gnu one.
Differential revision: http://reviews.llvm.org/D20470
llvm-svn: 270540
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 760249f56a8..d7ec3e57a58 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -653,6 +653,10 @@ uint64_t MachOObjectFile::getSectionAlignment(DataRefImpl Sec) const { return uint64_t(1) << Align; } +bool MachOObjectFile::isSectionCompressed(DataRefImpl Sec) const { + return false; +} + bool MachOObjectFile::isSectionText(DataRefImpl Sec) const { uint32_t Flags = getSectionFlags(this, Sec); return Flags & MachO::S_ATTR_PURE_INSTRUCTIONS; |