diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2016-01-31 03:10:41 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2016-01-31 03:10:41 -0500 |
| commit | f0ab57068974f11cc19a95e9672af22ba2ea2ae2 (patch) | |
| tree | 054ef39ec6824ca2cb8f2252e5d8c5feb32a07ab /function.cpp | |
| parent | a48ce3f4aa1266d5b8619cf320a703ba4f697854 (diff) | |
Create functions and types from function pointer parameters, now finds main() on Linux armv7
Diffstat (limited to 'function.cpp')
| -rw-r--r-- | function.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
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<Ref<BasicBlock>> 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<FunctionGraph> Function::CreateFunctionGraph() { BNFunctionGraph* graph = BNCreateFunctionGraph(m_object); |
