| # RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| # RUN: | llvm-dwarfdump -v --debug-info --debug-line - \ |
| # RUN: | FileCheck %s |
| |
| # CHECK-NOT: .debug_abbrev contents: |
| |
| # CHECK: .debug_info contents: |
| # CHECK: DW_TAG_compile_unit [1] |
| # CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{.*}}] = "brief.c") |
| # CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{.*}}] = "main") |
| # CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{.*}}] = "int") |
| |
| # CHECK: .debug_line contents: |
| # CHECK: 00 DW_LNE_set_address (0x0000000000000000) |
| # CHECK: 01 DW_LNS_copy |
| # CHECK: 0x0000000000000000 1 0 1 0 0 is_stmt |
| # CHECK: 05 DW_LNS_set_column (12) |
| # CHECK: 0a DW_LNS_set_prologue_end |
| # CHECK: 66 address += 89, line += 0 |
| # CHECK: 0x0000000000000006 1 12 1 0 0 is_stmt prologue_end |
| # CHECK: 02 DW_LNS_advance_pc (2) |
| # CHECK: 00 DW_LNE_end_sequence |
| # CHECK: 0x0000000000000008 1 12 1 0 0 is_stmt end_sequence |
| # |
| # CHECK-NOT: {{.*}} contents: |