-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-symbolizer] Add -print-address option
Differential Revision: http://reviews.llvm.org/D13518 llvm-svn: 250086
- Loading branch information
Hemant Kulkarni
committed
Oct 12, 2015
1 parent
b0fe4eb
commit 80f82fb
Showing
5 changed files
with
30 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0x40054d |
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,19 @@ | ||
#Source: | ||
##include <stdio.h> | ||
#static inline int inc (int *a) { | ||
# printf ("%d\n",(*a)++); | ||
# return (*a)++; | ||
#} | ||
# | ||
#int main () { | ||
# int x = 1; | ||
# return inc(&x); | ||
#} | ||
#Build as : clang -g -O2 addr.c | ||
|
||
RUN: llvm-symbolizer -inlining -print-address -obj=%p/Inputs/addr.exe < %p/Inputs/addr.inp | FileCheck %s | ||
|
||
#CHECK: 0x40054d | ||
#CHECK: main | ||
#CHECK: {{[/\]+}}tmp{{[/\]+}}x.c:9: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