From f0ab57068974f11cc19a95e9672af22ba2ea2ae2 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Sun, 31 Jan 2016 03:10:41 -0500 Subject: Create functions and types from function pointer parameters, now finds main() on Linux armv7 --- function.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 20b7ee89..ee2c5d36 100644 --- a/function.cpp +++ b/function.cpp @@ -46,6 +46,12 @@ bool Function::CanReturn() const } +bool Function::HasExplicitlyDefinedType() const +{ + return BNFunctionHasExplicitlyDefinedType(m_object); +} + + vector> Function::GetBasicBlocks() const { size_t count; @@ -193,6 +199,12 @@ void Function::ApplyImportedTypes(Symbol* sym) } +void Function::ApplyAutoDiscoveredType(Type* type) +{ + BNApplyAutoDiscoveredFunctionType(m_object, type->GetObject()); +} + + Ref Function::CreateFunctionGraph() { BNFunctionGraph* graph = BNCreateFunctionGraph(m_object); -- cgit v1.3.1