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
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
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
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
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 - \
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
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 - \
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
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
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
51 PARENTS: 0x00000043:{{ }}DW_TAG_base_type