forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's an empty shell for now. It's main method just opens the debug map objects and parses their Dwarf info. Test that we at least do that correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227337 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
5 changed files
with
113 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
RUN: llvm-dsymutil -v -oso-prepend-path=%p %p/Inputs/basic.macho.x86_64 | FileCheck %s | ||
RUN: llvm-dsymutil -v -oso-prepend-path=%p %p/Inputs/basic-lto.macho.x86_64 | FileCheck %s --check-prefix=CHECK-LTO | ||
RUN: llvm-dsymutil -v -oso-prepend-path=%p %p/Inputs/basic-archive.macho.x86_64 | FileCheck %s --check-prefix=CHECK-ARCHIVE | ||
|
||
This test check the basic Dwarf linking process through the debug dumps. | ||
|
||
CHECK: DEBUG MAP OBJECT: {{.*}}basic1.macho.x86_64.o | ||
CHECK: Input compilation unit: | ||
CHECK-NEXT: TAG_compile_unit | ||
CHECK-NOT: TAG | ||
CHECK: AT_name {{.*}}basic1.c | ||
CHECK: DEBUG MAP OBJECT: {{.*}}basic2.macho.x86_64.o | ||
CHECK: Input compilation unit: | ||
CHECK-NEXT: TAG_compile_unit | ||
CHECK-NOT: TAG | ||
CHECK: AT_name {{.*}}basic2.c | ||
CHECK: DEBUG MAP OBJECT: {{.*}}basic3.macho.x86_64.o | ||
CHECK: Input compilation unit: | ||
CHECK-NEXT: TAG_compile_unit | ||
CHECK-NOT: TAG | ||
CHECK: AT_name {{.*}}basic3.c | ||
|
||
|
||
CHECK-LTO: DEBUG MAP OBJECT: {{.*}}basic-lto.macho.x86_64.o | ||
CHECK-LTO: Input compilation unit: | ||
CHECK-LTO-NEXT: TAG_compile_unit | ||
CHECK-LTO-NOT: TAG | ||
CHECK-LTO: AT_name {{.*}}basic1.c | ||
CHECK-LTO: Input compilation unit: | ||
CHECK-LTO-NEXT: TAG_compile_unit | ||
CHECK-LTO-NOT: TAG | ||
CHECK-LTO: AT_name {{.*}}basic2.c | ||
CHECK-LTO: Input compilation unit: | ||
CHECK-LTO-NEXT: TAG_compile_unit | ||
CHECK-LTO-NOT: TAG | ||
CHECK-LTO: AT_name {{.*}}basic3.c | ||
|
||
|
||
CHECK-ARCHIVE: DEBUG MAP OBJECT: {{.*}}basic1.macho.x86_64.o | ||
CHECK-ARCHIVE: Input compilation unit: | ||
CHECK-ARCHIVE-NEXT: TAG_compile_unit | ||
CHECK-ARCHIVE-NOT: TAG | ||
CHECK-ARCHIVE: AT_name {{.*}}basic1.c | ||
CHECK-ARCHIVE: DEBUG MAP OBJECT: {{.*}}libbasic.a(basic2.macho.x86_64.o) | ||
CHECK-ARCHIVE: Input compilation unit: | ||
CHECK-ARCHIVE-NEXT: TAG_compile_unit | ||
CHECK-ARCHIVE-NOT: TAG | ||
CHECK-ARCHIVE: AT_name {{.*}}basic2.c | ||
CHECK-ARCHIVE: DEBUG MAP OBJECT: {{.*}}libbasic.a(basic3.macho.x86_64.o) | ||
CHECK-ARCHIVE: Input compilation unit: | ||
CHECK-ARCHIVE-NEXT: TAG_compile_unit | ||
CHECK-ARCHIVE-NOT: TAG | ||
CHECK-ARCHIVE: AT_name {{.*}}basic3.c | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
set(LLVM_LINK_COMPONENTS | ||
DebugInfo | ||
Object | ||
Support | ||
) | ||
|
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
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