From cef6e55ba5aa55bfd2e168df7ac0e477e8dceffc Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Tue, 17 May 2016 23:12:18 -0400 Subject: IL basic blocks are now in the IL function class --- binaryninjaapi.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'binaryninjaapi.h') 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 GetLowLevelIL() const; - std::vector> GetLowLevelILBasicBlocks() const; size_t GetLowLevelILForInstruction(Architecture* arch, uint64_t addr); std::vector GetLowLevelILExitsForInstruction(Architecture* arch, uint64_t addr); BNRegisterValue GetRegisterValueAtInstruction(Architecture* arch, uint64_t addr, uint32_t reg); @@ -1347,7 +1346,6 @@ namespace BinaryNinja std::vector GetStackVariablesReferencedByInstruction(Architecture* arch, uint64_t addr); Ref GetLiftedIL() const; - std::vector> GetLiftedILBasicBlocks() const; size_t GetLiftedILForInstruction(Architecture* arch, uint64_t addr); std::set GetLiftedILFlagUsesForDefinition(size_t i, uint32_t flag); std::set 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& tokens); bool GetInstructionText(Function* func, Architecture* arch, size_t i, @@ -1554,6 +1552,8 @@ namespace BinaryNinja uint32_t GetTemporaryRegisterCount(); uint32_t GetTemporaryFlagCount(); + + std::vector> GetBasicBlocks() const; }; class FunctionRecognizer -- cgit v1.3.1