SmallString<32> ZDebugName;
if (MAI->compressDebugSections() && Section.startswith(".debug_") &&
- Section != ".debug_frame")
+ Section != ".debug_frame" && Section != ".debug_line")
Section = (".z" + Section.drop_front(1)).toStringRef(ZDebugName);
// Do the lookup, if we have a hit, return it.
// REQUIRES: zlib
-// CHECK: Contents of section .zdebug_line:
+// CHECK: Contents of section .debug_line:
+// FIXME: Figure out how to handle debug_line that currently uses multiple section fragments
+// CHECK-NOT: ZLIB
+
+// CHECK: Contents of section .zdebug_abbrev:
// Check for the 'ZLIB' file magic at the start of the section
// CHECK-NEXT: ZLIB
+
// We shouldn't compress the debug_frame section, since it can be relaxed
// CHECK: Contents of section .debug_frame
// CHECK-NOT: ZLIB
.section .debug_line,"",@progbits
+
+ .section .debug_abbrev,"",@progbits
+ .byte 1 # Abbreviation Code
.text
foo:
.cfi_startproc