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
afcdf180
Commit
afcdf180
authored
Sep 07, 2024
by
phoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set line of exception handling basic blocks to zero
parent
1a758e17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
WholeProgramInstrumentDumpper.cpp
llvm/lib/Transforms/IPO/WholeProgramInstrumentDumpper.cpp
+15
-13
No files found.
llvm/lib/Transforms/IPO/WholeProgramInstrumentDumpper.cpp
View file @
afcdf180
...
...
@@ -13,20 +13,22 @@ struct VisBasicBlock {
VisBasicBlock
(
BasicBlock
&
BB
,
unsigned
Function
)
:
Line
(
-
1u
),
LineEnd
(
0
),
Function
(
Function
)
{
for
(
auto
&
Inst
:
BB
)
{
if
(
auto
Loc
=
Inst
.
getDebugLoc
())
{
if
(
Loc
.
getLine
()
==
0
)
continue
;
auto
theLoc
=
Loc
.
get
();
if
(
auto
loc_tmp
=
theLoc
->
getInlinedAt
())
{
while
(
loc_tmp
->
getInlinedAt
())
{
loc_tmp
=
loc_tmp
->
getInlinedAt
();
if
(
BB
.
begin
()
->
getOpcode
()
!=
Instruction
::
LandingPad
)
{
for
(
auto
&
Inst
:
BB
)
{
if
(
auto
Loc
=
Inst
.
getDebugLoc
())
{
if
(
Loc
.
getLine
()
==
0
)
continue
;
auto
theLoc
=
Loc
.
get
();
if
(
auto
loc_tmp
=
theLoc
->
getInlinedAt
())
{
while
(
loc_tmp
->
getInlinedAt
())
{
loc_tmp
=
loc_tmp
->
getInlinedAt
();
}
theLoc
=
loc_tmp
;
}
theLoc
=
loc_tmp
;
}
Line
=
std
::
min
(
Line
,
theLoc
->
getLine
());
LineEnd
=
std
::
max
(
LineEnd
,
theLoc
->
getLine
());
}
Line
=
std
::
min
(
Line
,
theLoc
->
getLine
());
LineEnd
=
std
::
max
(
LineEnd
,
theLoc
->
getLine
());
}
}
}
// Restore to 0 when debug info is not available
if
(
Line
==
-
1u
)
...
...
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