2014-03-28 04:45:58 +08:00
|
|
|
// RUN: llvm-mc -filetype=obj -compress-debug-sections -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump -s - | FileCheck %s
|
|
|
|
|
2014-04-11 05:53:47 +08:00
|
|
|
// XFAIL: *
|
|
|
|
|
2014-03-29 01:04:53 +08:00
|
|
|
// REQUIRES: zlib
|
|
|
|
|
2014-03-29 05:48:31 +08:00
|
|
|
// 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:
|
2014-03-28 04:45:58 +08:00
|
|
|
// Check for the 'ZLIB' file magic at the start of the section
|
|
|
|
// CHECK-NEXT: ZLIB
|
2014-03-29 05:48:31 +08:00
|
|
|
|
2014-03-28 04:45:58 +08:00
|
|
|
// 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
|
2014-03-29 05:48:31 +08:00
|
|
|
|
|
|
|
.section .debug_abbrev,"",@progbits
|
|
|
|
.byte 1 # Abbreviation Code
|
2014-03-28 04:45:58 +08:00
|
|
|
.text
|
|
|
|
foo:
|
|
|
|
.cfi_startproc
|
|
|
|
.file 1 "Driver.ii"
|
|
|
|
.loc 1 2 0
|
|
|
|
nop
|
|
|
|
.cfi_endproc
|
|
|
|
.cfi_sections .debug_frame
|