-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dsymutil] Generate Apple accelerator tables
This patch adds support for generating accelerator tables in dsymutil. This feature was already present in our internal repository but not yet upstreamed because it requires changes to the Apple accelerator table implementation. Differential revision: https://reviews.llvm.org/D42501 llvm-svn: 323655
- Loading branch information
1 parent
855fc3b
commit 5ead3a2
Showing
8 changed files
with
642 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| RUN: llvm-dsymutil -f -oso-prepend-path=%p/.. %p/../Inputs/objc.macho.x86_64 -o - \ | ||
| RUN: | llvm-dwarfdump -apple-types -apple-objc - | FileCheck %s | ||
|
|
||
| CHECK: .apple_types contents: | ||
| CHECK: String: 0x00000066 "A" | ||
| CHECK-NEXT: Data 0 [ | ||
| CHECK-NEXT: Atom[0]: 0x0000012d | ||
| CHECK-NEXT: Atom[1]: 0x0013 | ||
| CHECK-NEXT: Atom[2]: 0x02 | ||
| CHECK-NEXT: Atom[3]: 0x0b87b15a | ||
| CHECK-NEXT: ] | ||
|
|
||
| CHECK: .apple_objc contents: | ||
| CHECK-NEXT: Header { | ||
| CHECK-NEXT: Magic: 0x48415348 | ||
| CHECK-NEXT: Version: 0x1 | ||
| CHECK-NEXT: Hash function: 0x0 | ||
| CHECK-NEXT: Bucket count: 2 | ||
| CHECK-NEXT: Hashes count: 2 | ||
| CHECK-NEXT: HeaderData length: 12 | ||
| CHECK-NEXT: } | ||
| CHECK-NEXT: DIE offset base: 0 | ||
| CHECK-NEXT: Number of atoms: 1 | ||
| CHECK-NEXT: Atoms [ | ||
| CHECK-NEXT: Atom 0 { | ||
| CHECK-NEXT: Type: DW_ATOM_die_offset | ||
| CHECK-NEXT: Form: DW_FORM_data4 | ||
| CHECK-NEXT: } | ||
| CHECK-NEXT: ] | ||
| CHECK-NEXT: Bucket 0 [ | ||
| CHECK-NEXT: Hash 0x2b5e6 [ | ||
| CHECK-NEXT: Name@0x38 { | ||
| CHECK-NEXT: String: 0x00000066 "A" | ||
| CHECK-NEXT: Data 0 [ | ||
| CHECK-NEXT: Atom[0]: 0x00000027 | ||
| CHECK-NEXT: ] | ||
| CHECK-NEXT: Data 1 [ | ||
| CHECK-NEXT: Atom[0]: 0x0000007a | ||
| CHECK-NEXT: ] | ||
| CHECK-NEXT: } | ||
| CHECK-NEXT: ] | ||
| CHECK-NEXT: ] | ||
| CHECK-NEXT: Bucket 1 [ | ||
| CHECK-NEXT: Hash 0x3fa0f4b5 [ | ||
| CHECK-NEXT: Name@0x4c { | ||
| CHECK-NEXT: String: 0x0000009d "A(Category)" | ||
| CHECK-NEXT: Data 0 [ | ||
| CHECK-NEXT: Atom[0]: 0x0000007a | ||
| CHECK-NEXT: ] | ||
| CHECK-NEXT: } | ||
| CHECK-NEXT: ] | ||
| CHECK-NEXT: ] |
Oops, something went wrong.