Debug Compression: Avoid compression debug_frame for now
[oota-llvm.git] / test / MC / ELF / compression.s
1 // RUN: llvm-mc -filetype=obj -compress-debug-sections -triple x86_64-pc-linux-gnu %s -o - | llvm-objdump -s - | FileCheck %s
2
3 // REQUIRES: zlib
4
5 // CHECK: Contents of section .debug_line:
6 // FIXME: Figure out how to handle debug_line that currently uses multiple section fragments
7 // CHECK-NOT: ZLIB
8
9 // CHECK: Contents of section .zdebug_abbrev:
10 // Check for the 'ZLIB' file magic at the start of the section
11 // CHECK-NEXT: ZLIB
12
13 // We shouldn't compress the debug_frame section, since it can be relaxed
14 // CHECK: Contents of section .debug_frame
15 // CHECK-NOT: ZLIB
16
17         .section        .debug_line,"",@progbits
18
19         .section        .debug_abbrev,"",@progbits
20         .byte   1                       # Abbreviation Code
21         .text
22 foo:
23         .cfi_startproc
24         .file 1 "Driver.ii"
25         .loc 1 2 0
26         nop
27         .cfi_endproc
28         .cfi_sections .debug_frame