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
83bc9e78
Commit
83bc9e78
authored
11 years ago
by
an7s
Browse files
Options
Downloads
Patches
Plain Diff
added LookupAssembly()
Former-commit-id: dd9fc21dfed052ad30cb21e3833364a71379d620
parent
afefd319
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/core/fileir.hpp
+2
-0
2 additions, 0 deletions
libIRDB/include/core/fileir.hpp
libIRDB/src/core/fileir.cpp
+7
-0
7 additions, 0 deletions
libIRDB/src/core/fileir.cpp
with
9 additions
and
0 deletions
libIRDB/include/core/fileir.hpp
+
2
−
0
View file @
83bc9e78
...
...
@@ -37,6 +37,8 @@ class FileIR_t : public BaseObj_t
void
AssembleRegistry
();
void
RegisterAssembly
(
Instruction_t
*
instr
,
std
::
string
assembly
);
void
UnregisterAssembly
(
Instruction_t
*
instr
);
std
::
string
LookupAssembly
(
Instruction_t
*
instr
);
//Needed for inserting assembly before an instruction.
//if orig is not registered, the function returns, otherwise
//the instruction/assembly mapping of orig->assembly is altered to
...
...
This diff is collapsed.
Click to expand it.
libIRDB/src/core/fileir.cpp
+
7
−
0
View file @
83bc9e78
...
...
@@ -195,6 +195,13 @@ void FileIR_t::UnregisterAssembly(Instruction_t *instr)
assembly_registry
.
erase
(
instr
);
}
std
::
string
FileIR_t
::
LookupAssembly
(
Instruction_t
*
instr
)
{
if
(
assembly_registry
.
find
(
instr
)
!=
assembly_registry
.
end
())
return
assembly_registry
[
instr
];
else
return
std
::
string
();
}
std
::
map
<
db_id_t
,
Function_t
*>
FileIR_t
::
ReadFuncsFromDB
(
...
...
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