diff options
| author | Rusty Wagner <rusty@vector35.com> | 2016-05-17 23:12:18 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2016-05-17 23:12:18 -0400 |
| commit | cef6e55ba5aa55bfd2e168df7ac0e477e8dceffc (patch) | |
| tree | 6d065115ab1c74813077eb907e27161b2946fa40 /function.cpp | |
| parent | 72bf56348109d87994928dee244dd97a27480c6d (diff) | |
IL basic blocks are now in the IL function class
Diffstat (limited to 'function.cpp')
| -rw-r--r-- | function.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/function.cpp b/function.cpp index 209537b7..b8429998 100644 --- a/function.cpp +++ b/function.cpp @@ -124,20 +124,6 @@ Ref<LowLevelILFunction> Function::GetLowLevelIL() const } -vector<Ref<BasicBlock>> Function::GetLowLevelILBasicBlocks() const -{ - size_t count; - BNBasicBlock** blocks = BNGetFunctionLowLevelILBasicBlockList(m_object, &count); - - vector<Ref<BasicBlock>> result; - for (size_t i = 0; i < count; i++) - result.push_back(new BasicBlock(BNNewBasicBlockReference(blocks[i]))); - - BNFreeBasicBlockList(blocks, count); - return result; -} - - size_t Function::GetLowLevelILForInstruction(Architecture* arch, uint64_t addr) { return BNGetLowLevelILForInstruction(m_object, arch->GetObject(), addr); @@ -235,20 +221,6 @@ Ref<LowLevelILFunction> Function::GetLiftedIL() const } -vector<Ref<BasicBlock>> Function::GetLiftedILBasicBlocks() const -{ - size_t count; - BNBasicBlock** blocks = BNGetFunctionLiftedILBasicBlockList(m_object, &count); - - vector<Ref<BasicBlock>> result; - for (size_t i = 0; i < count; i++) - result.push_back(new BasicBlock(BNNewBasicBlockReference(blocks[i]))); - - BNFreeBasicBlockList(blocks, count); - return result; -} - - size_t Function::GetLiftedILForInstruction(Architecture* arch, uint64_t addr) { return BNGetLiftedILForInstruction(m_object, arch->GetObject(), addr); |
