diff options
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; |
