[lldb] Remove ELF .zdebug support

clang 14 removed -gz=zlib-gnu support and ld.lld/llvm-objcopy removed zlib-gnu
support recently. Remove lldb support by migrating away from
llvm::object::Decompressor::isCompressedELFSection.
The API has another user llvm-dwp, so it is not removed in this patch.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D129724
This commit is contained in:
Fangrui Song
2022-07-14 10:12:48 -07:00
parent 2f11b3a6d7
commit ecfaf4801c
3 changed files with 5 additions and 61 deletions

View File

@@ -16,6 +16,7 @@ Sections:
Type: SHT_PROGBITS
Flags: [ SHF_COMPRESSED ]
Content: deadbeefbaadf00d
## The legacy .zdebug format is not supported.
- Name: .zdebug_info
Type: SHT_PROGBITS
Content: 5A4C49420000000000000008789c5330700848286898000009c802c1
@@ -37,8 +38,8 @@ Sections:
# CHECK-NEXT: Data: ()
# CHECK: Name: .zdebug_info
# CHECK: dwarf-info
# CHECK: regular
# CHECK: File size: 28
# CHECK: Data: (
# CHECK-NEXT: 20304050 60708090
# CHECK-NEXT: 5A4C4942 00000000 00000008 789C5330 70084828 68980000 09C802C1
# CHECK-NEXT: )