| 1 |
RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 2 |
RUN: | llvm-dwarfdump -debug-info=0x0000000b - | FileCheck %s |
| 3 |
CHECK: .debug_info contents: |
| 4 |
CHECK: 0x0000000b: DW_TAG_compile_unit |
| 5 |
CHECK: DW_AT_name |
| 6 |
CHECK-NOT: {{:}} |
| 7 |
|
| 8 |
RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 9 |
RUN: | llvm-dwarfdump -debug-info=0 - \ |
| 10 |
RUN: | FileCheck --allow-empty --check-prefix=EMPTY %s |
| 11 |
EMPTY-NOT: DW_TAG |
| 12 |
|
| 13 |
RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 14 |
RUN: | llvm-dwarfdump -debug-info=0x0000000b -c - \ |
| 15 |
RUN: | FileCheck %s --check-prefix=CHILDREN |
| 16 |
|
| 17 |
RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 18 |
RUN: | llvm-dwarfdump -debug-info=0x0000000b --show-children - \ |
| 19 |
RUN: | FileCheck %s --check-prefix=CHILDREN |
| 20 |
CHILDREN: .debug_info contents: |
| 21 |
CHILDREN: 0x0000000b: DW_TAG_compile_unit |
| 22 |
CHILDREN: DW_TAG_subprogram |
| 23 |
|
| 24 |
RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 25 |
RUN: | llvm-dwarfdump -debug-info=0x0000000b -c -r 0 - \ |
| 26 |
RUN: | FileCheck %s |
| 27 |
|
| 28 |
RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 29 |
RUN: | llvm-dwarfdump -debug-info=0x0000000b -c -r 1 - \ |
| 30 |
RUN: | FileCheck %s --check-prefix=CHILDREN |
| 31 |
|
| 32 |
RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 33 |
RUN: | llvm-dwarfdump -debug-info=0x0000000b -c -recurse-depth 0 - \ |
| 34 |
RUN: | FileCheck %s |
| 35 |
|
| 36 |
RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 37 |
RUN: | llvm-dwarfdump -debug-info=0x0000000b -c -recurse-depth 1 - \ |
| 38 |
RUN: | FileCheck %s --check-prefix=CHILDREN |
| 39 |
|
| 40 |
RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 41 |
RUN: | llvm-dwarfdump -debug-info=0x00000043 --show-parents - \ |
| 42 |
RUN: | FileCheck %s --check-prefix=PARENTS |
| 43 |
|
| 44 |
RUN: llvm-mc %S/brief.s -filetype obj -triple x86_64-apple-darwin -o - \ |
| 45 |
RUN: | llvm-dwarfdump -debug-info=0x00000043 -p - \ |
| 46 |
RUN: | FileCheck %s --check-prefix=PARENTS |
| 47 |
PARENTS: .debug_info contents: |
| 48 |
PARENTS: 0x0000000b:{{ }}DW_TAG_compile_unit |
| 49 |
PARENTS: DW_AT_name |
| 50 |
PARENTS-NOT: {{:}} |
| 51 |
PARENTS: 0x00000043:{{ }}DW_TAG_base_type |
| 52 |
PARENTS: DW_AT_name |
| 53 |
PARENTS-NOT: {{:}} |