-
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.
[llvm-symbolizer][test] Extract tests from llvm-symbolizer.test and s…
…implify (#1) This is the second of a series of patches simplifying llvm-symbolizer tests. See r352752 for the first. This one splits out 5 distinct test cases from llvm-symbolizer.test into separate tests, and simplifies them slightly by using --obj/positional arguments for the input file and addresses instead of stdin. See https://bugs.llvm.org/show_bug.cgi?id=40070#c1 for the motivation. Reviewed by: dblaikie Differential Revision: https://reviews.llvm.org/D57443 llvm-svn: 352753
- Loading branch information
Showing
6 changed files
with
31 additions
and
33 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,4 @@ | ||
RUN: llvm-symbolizer --no-demangle --obj=%p/Inputs/arange-overlap.elf-x86_64 0x714 | FileCheck %s | ||
|
||
CHECK: _ZN1S3bazEv | ||
CHECK-NEXT: {{.*}}arange-overlap.cc:6 |
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,8 @@ | ||
RUN: llvm-symbolizer --obj=%p/Inputs/cross-cu-inlining.x86_64-macho.o 0x17 | FileCheck %s | ||
|
||
; func has been inlined into main by LTO. Check that the symbolizer is able | ||
; to resolve the cross-cu reference and retrieve func's name | ||
CHECK: func | ||
CHECK-NEXT: /tmp{{[/\\]}}cross-cu-inlining.c:16:3 | ||
CHECK-NEXT: main | ||
CHECK-NEXT: /tmp{{[/\\]}}cross-cu-inlining.c:11:0 |
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,5 @@ | ||
RUN: llvm-symbolizer --no-demangle --obj=%p/Inputs/llvm-symbolizer-local-mem-func-gcc.elf-x86-64 0x61a | FileCheck %s | ||
|
||
CHECK-NOT: local_mem_func | ||
CHECK: _ZZ2f1vEN3foo14local_mem_funcEv | ||
CHECK-NEXT: {{.*}}local-mem-func.cpp:3:0 |
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,10 @@ | ||
RUN: llvm-symbolizer --inlining --obj=%p/Inputs/dwarfdump-inl-test.high_pc.elf-x86-64 0x568 | FileCheck %s | ||
|
||
CHECK: inlined_h | ||
CHECK-NEXT: dwarfdump-inl-test.h:3 | ||
CHECK-NEXT: inlined_g | ||
CHECK-NEXT: dwarfdump-inl-test.h:7 | ||
CHECK-NEXT: inlined_f | ||
CHECK-NEXT: dwarfdump-inl-test.cc:3 | ||
CHECK-NEXT: main | ||
CHECK-NEXT: dwarfdump-inl-test.cc:8 |
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,4 @@ | ||
RUN: llvm-symbolizer 0x1f1 --obj %p/Inputs/shared-object-stripped.elf-i386 \ | ||
RUN: | FileCheck %s | ||
|
||
CHECK: global_func |