summaryrefslogtreecommitdiff
path: root/mediumlevelilinstruction.cpp
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2025-10-20 23:28:36 -0700
committerMark Rowe <mark@vector35.com>2025-10-22 07:33:29 -0700
commit4c8fa3972ad50c07631418620eb9be44d629b2ae (patch)
tree449f00df976cc4a15602d6af4a196a91f54b6a69 /mediumlevelilinstruction.cpp
parent623f07a2b44ac9dbc86bab2ea011ee5899664f15 (diff)
Move implementations of key functions on Variable and SSAVariable to headers
These types are heavily used as map keys so allowing the compiler to inline these functions makes map lookups cheaper.
Diffstat (limited to 'mediumlevelilinstruction.cpp')
-rw-r--r--mediumlevelilinstruction.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/mediumlevelilinstruction.cpp b/mediumlevelilinstruction.cpp
index 8a026aad..1894294b 100644
--- a/mediumlevelilinstruction.cpp
+++ b/mediumlevelilinstruction.cpp
@@ -307,47 +307,6 @@ unordered_map<BNMediumLevelILOperation, unordered_map<MediumLevelILOperandUsage,
MediumLevelILInstructionBase::operationOperandIndex = GetOperandIndexForOperandUsages();
-SSAVariable::SSAVariable() : version(0) {}
-
-
-SSAVariable::SSAVariable(const Variable& v, size_t i) : var(v), version(i) {}
-
-
-SSAVariable::SSAVariable(const SSAVariable& v) : var(v.var), version(v.version) {}
-
-
-SSAVariable& SSAVariable::operator=(const SSAVariable& v)
-{
- var = v.var;
- version = v.version;
- return *this;
-}
-
-
-bool SSAVariable::operator==(const SSAVariable& v) const
-{
- if (var != v.var)
- return false;
- return version == v.version;
-}
-
-
-bool SSAVariable::operator!=(const SSAVariable& v) const
-{
- return !((*this) == v);
-}
-
-
-bool SSAVariable::operator<(const SSAVariable& v) const
-{
- if (var < v.var)
- return true;
- if (v.var < var)
- return false;
- return version < v.version;
-}
-
-
bool MediumLevelILIntegerList::ListIterator::operator==(const ListIterator& a) const
{
return count == a.count;