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 /binaryninjaapi.h | |
| parent | 72bf56348109d87994928dee244dd97a27480c6d (diff) | |
IL basic blocks are now in the IL function class
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index 6d0a8535..054e11f3 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -1335,7 +1335,6 @@ namespace BinaryNinja void SetCommentForAddress(uint64_t addr, const std::string& comment); Ref<LowLevelILFunction> GetLowLevelIL() const; - std::vector<Ref<BasicBlock>> GetLowLevelILBasicBlocks() const; size_t GetLowLevelILForInstruction(Architecture* arch, uint64_t addr); std::vector<size_t> GetLowLevelILExitsForInstruction(Architecture* arch, uint64_t addr); BNRegisterValue GetRegisterValueAtInstruction(Architecture* arch, uint64_t addr, uint32_t reg); @@ -1347,7 +1346,6 @@ namespace BinaryNinja std::vector<StackVariableReference> GetStackVariablesReferencedByInstruction(Architecture* arch, uint64_t addr); Ref<LowLevelILFunction> GetLiftedIL() const; - std::vector<Ref<BasicBlock>> GetLiftedILBasicBlocks() const; size_t GetLiftedILForInstruction(Architecture* arch, uint64_t addr); std::set<size_t> GetLiftedILFlagUsesForDefinition(size_t i, uint32_t flag); std::set<size_t> GetLiftedILFlagDefinitionsForUse(size_t i, uint32_t flag); @@ -1452,7 +1450,7 @@ namespace BinaryNinja BNNewLowLevelILFunctionReference, BNFreeLowLevelILFunction> { public: - LowLevelILFunction(); + LowLevelILFunction(Architecture* arch); LowLevelILFunction(BNLowLevelILFunction* func); uint64_t GetCurrentAddress() const; @@ -1546,7 +1544,7 @@ namespace BinaryNinja void AddLabelForAddress(Architecture* arch, ExprId addr); BNLowLevelILLabel* GetLabelForAddress(Architecture* arch, ExprId addr); - void Finalize(); + void Finalize(Function* func = nullptr); bool GetExprText(Architecture* arch, ExprId expr, std::vector<InstructionTextToken>& tokens); bool GetInstructionText(Function* func, Architecture* arch, size_t i, @@ -1554,6 +1552,8 @@ namespace BinaryNinja uint32_t GetTemporaryRegisterCount(); uint32_t GetTemporaryFlagCount(); + + std::vector<Ref<BasicBlock>> GetBasicBlocks() const; }; class FunctionRecognizer |
