Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
visual-fuzz-llvm
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
江峰
visual-fuzz-llvm
Commits
1a758e17
Commit
1a758e17
authored
Sep 04, 2024
by
phoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get original line of source code for inlined function call
parent
89d9e054
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
WholeProgramInstrumentDumpper.cpp
llvm/lib/Transforms/IPO/WholeProgramInstrumentDumpper.cpp
+9
-2
No files found.
llvm/lib/Transforms/IPO/WholeProgramInstrumentDumpper.cpp
View file @
1a758e17
...
...
@@ -17,8 +17,15 @@ struct VisBasicBlock {
if
(
auto
Loc
=
Inst
.
getDebugLoc
())
{
if
(
Loc
.
getLine
()
==
0
)
continue
;
Line
=
std
::
min
(
Line
,
Loc
.
getLine
());
LineEnd
=
std
::
max
(
LineEnd
,
Loc
.
getLine
());
auto
theLoc
=
Loc
.
get
();
if
(
auto
loc_tmp
=
theLoc
->
getInlinedAt
())
{
while
(
loc_tmp
->
getInlinedAt
())
{
loc_tmp
=
loc_tmp
->
getInlinedAt
();
}
theLoc
=
loc_tmp
;
}
Line
=
std
::
min
(
Line
,
theLoc
->
getLine
());
LineEnd
=
std
::
max
(
LineEnd
,
theLoc
->
getLine
());
}
}
// Restore to 0 when debug info is not available
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment