diff options
| author | Mason Reed <mason@vector35.com> | 2025-07-10 01:32:32 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-07-15 12:34:43 -0400 |
| commit | 1c01b00d87e45c7ae8eb6320b20e7dcf67915d77 (patch) | |
| tree | e861d689ad737bb1140cd24654d74bbd82c3068d /function.cpp | |
| parent | 99e442620e8e19053120dc44239372d1fb5a3053 (diff) | |
Move LLIL instruction retrieval into the LLIL function where it belongs
The python API was kept the same seeing as we are close to the release, will likely start deprecating some of those API's soon.
Diffstat (limited to 'function.cpp')
| -rw-r--r-- | function.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/function.cpp b/function.cpp index c2e52e55..1b2c0a46 100644 --- a/function.cpp +++ b/function.cpp @@ -460,39 +460,6 @@ Ref<LowLevelILFunction> Function::GetLowLevelILIfAvailable() const } -size_t Function::GetLowLevelILForInstruction(Architecture* arch, uint64_t addr) -{ - return BNGetLowLevelILForInstruction(m_object, arch->GetObject(), addr); -} - - -set<size_t> Function::GetLowLevelILInstructionsForAddress(Architecture* arch, uint64_t addr) -{ - size_t count; - size_t* instrs = BNGetLowLevelILInstructionsForAddress(m_object, arch->GetObject(), addr, &count); - - set<size_t> result; - for (size_t i = 0; i < count; i++) - result.insert(instrs[i]); - - BNFreeILInstructionList(instrs); - return result; -} - - -vector<size_t> Function::GetLowLevelILExitsForInstruction(Architecture* arch, uint64_t addr) -{ - size_t count; - size_t* exits = BNGetLowLevelILExitsForInstruction(m_object, arch->GetObject(), addr, &count); - - vector<size_t> result; - result.insert(result.end(), exits, &exits[count]); - - BNFreeILInstructionList(exits); - return result; -} - - RegisterValue RegisterValue::FromAPIObject(const BNRegisterValue& value) { RegisterValue result; @@ -795,26 +762,6 @@ Ref<LowLevelILFunction> Function::GetLiftedILIfAvailable() const } -size_t Function::GetLiftedILForInstruction(Architecture* arch, uint64_t addr) -{ - return BNGetLiftedILForInstruction(m_object, arch->GetObject(), addr); -} - - -set<size_t> Function::GetLiftedILInstructionsForAddress(Architecture* arch, uint64_t addr) -{ - size_t count; - size_t* instrs = BNGetLiftedILInstructionsForAddress(m_object, arch->GetObject(), addr, &count); - - set<size_t> result; - for (size_t i = 0; i < count; i++) - result.insert(instrs[i]); - - BNFreeILInstructionList(instrs); - return result; -} - - set<size_t> Function::GetLiftedILFlagUsesForDefinition(size_t i, uint32_t flag) { size_t count; |
