xref: /llvm-project/llvm/test/DebugInfo/accel-tables-apple.ll (revision 8af224d52cad1380996ed84174d0b01a17d52759)
1; Verify the emission of accelerator tables for nameTableKind: Apple
2; REQUIRES: x86-registered-target
3
4; RUN: llc -mtriple=x86_64-apple-darwin12 -filetype=obj -o %t.d5.o < %S/Inputs/name-table-kind-apple-5.ll
5; RUN:   llvm-readobj --sections %t.d5.o | FileCheck --check-prefix=DEBUG_NAMES %s
6; RUN:   llvm-dwarfdump --debug-names %t.d5.o | FileCheck --check-prefix=COUNT_DEBUG_NAMES %s
7
8; RUN: llc -mtriple=x86_64-apple-darwin12 -filetype=obj < %S/Inputs/name-table-kind-apple-4.ll \
9; RUN:   | llvm-readobj --sections - | FileCheck --check-prefix=APPLE %s
10
11; APPLE-NOT: debug_names
12; APPLE-NOT: debug{{.*}}pub
13; APPLE: apple_names
14; APPLE-NOT: debug_names
15; APPLE-NOT: debug{{.*}}pub
16
17; DEBUG_NAMES-NOT: apple_names
18; DEBUG_NAMES-NOT: pubnames
19; DEBUG_NAMES: debug_names
20; DEBUG_NAMES-NOT: apple_names
21; DEBUG_NAMES-NOT: pubnames
22
23; COUNT_DEBUG_NAMES: Name count: 4
24