summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorRusty Wagner <rusty@vector35.com>2018-07-13 18:43:34 -0400
committerRusty Wagner <rusty@vector35.com>2018-07-13 18:43:34 -0400
commitc5c93fc82b8929d04f62d241ca50228de60fa5f4 (patch)
treee9456e0921d0706ab839cf4ca96eba18afec96a4 /function.cpp
parentdfe5d28f0aaee75ccad8c733e23879676ed77c37 (diff)
Add ability to update custom flow graphs
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/function.cpp b/function.cpp
index 62a8e1b0..202f6d77 100644
--- a/function.cpp
+++ b/function.cpp
@@ -811,7 +811,7 @@ void Function::ApplyAutoDiscoveredType(Type* type)
Ref<FlowGraph> Function::CreateFunctionGraph(BNFunctionGraphType type, DisassemblySettings* settings)
{
BNFlowGraph* graph = BNCreateFunctionGraph(m_object, type, settings ? settings->GetObject() : nullptr);
- return new FlowGraph(graph);
+ return new CoreFlowGraph(graph);
}
@@ -1396,7 +1396,7 @@ Ref<FlowGraph> Function::GetUnresolvedStackAdjustmentGraph()
BNFlowGraph* graph = BNGetUnresolvedStackAdjustmentGraph(m_object);
if (!graph)
return nullptr;
- return new FlowGraph(graph);
+ return new CoreFlowGraph(graph);
}