Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zipr Toolchain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
Zipr Toolchain
Commits
975c0215
Commit
975c0215
authored
6 years ago
by
Matthew McGill
Browse files
Options
Downloads
Patches
Plain Diff
changed class name
Former-commit-id: d17426c5fbeca3bb089361aa3f21f27c31fbf7c6
parent
b31985d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libIRDB/include/util/IBT_Provenance.hpp
+3
-3
3 additions, 3 deletions
libIRDB/include/util/IBT_Provenance.hpp
libIRDB/src/util/IBT_Provenance.cpp
+2
-2
2 additions, 2 deletions
libIRDB/src/util/IBT_Provenance.cpp
with
5 additions
and
5 deletions
libIRDB/include/util/IBT_Provenance.hpp
+
3
−
3
View file @
975c0215
...
...
@@ -3,15 +3,15 @@
#include
<bitset>
class
IBT
_
Provenance_t
class
IBTProvenance_t
{
private:
enum
class
IB_Type
{
IndJmp
=
0
,
IndCall
=
1
,
Ret
=
2
};
typedef
std
::
map
<
const
Instruction_t
*
,
std
::
bitset
<
3
>>
ProvMap_t
;
public
:
IBT
_
Provenance_t
(
const
FileIR_t
*
f
=
NULL
)
{
Init
();
if
(
f
)
AddFile
(
f
);}
virtual
~
IBT
_
Provenance_t
()
{;}
IBTProvenance_t
(
const
FileIR_t
*
f
=
NULL
)
{
Init
();
if
(
f
)
AddFile
(
f
);}
virtual
~
IBTProvenance_t
()
{;}
virtual
void
AddFile
(
const
FileIR_t
*
);
bool
IsInsnRetTarg
(
const
Instruction_t
*
i
)
const
...
...
This diff is collapsed.
Click to expand it.
libIRDB/src/util/IBT_Provenance.cpp
+
2
−
2
View file @
975c0215
...
...
@@ -9,7 +9,7 @@ using namespace std;
void
IBT
_
Provenance_t
::
AddProvs
(
const
Instruction_t
*
before
,
const
InstructionSet_t
&
afterset
)
void
IBTProvenance_t
::
AddProvs
(
const
Instruction_t
*
before
,
const
InstructionSet_t
&
afterset
)
{
// Determine type of IB
const
auto
IndBranchAsm
=
DecodedInstruction_t
(
before
);
...
...
@@ -44,7 +44,7 @@ void IBT_Provenance_t::AddProvs(const Instruction_t* before, const InstructionSe
}
}
void
IBT
_
Provenance_t
::
AddFile
(
const
FileIR_t
*
firp2
)
void
IBTProvenance_t
::
AddFile
(
const
FileIR_t
*
firp2
)
{
FileIR_t
*
firp
=
(
FileIR_t
*
)
firp2
;
// discarding const qualifier because we know we won't change the set
firp
->
AssembleRegistry
();
// Takes time but I'm paranoid
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment