summaryrefslogtreecommitdiff
path: root/flowgraphnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'flowgraphnode.cpp')
-rw-r--r--flowgraphnode.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/flowgraphnode.cpp b/flowgraphnode.cpp
index 9d4ed631..0101d716 100644
--- a/flowgraphnode.cpp
+++ b/flowgraphnode.cpp
@@ -40,6 +40,15 @@ FlowGraphNode::FlowGraphNode(BNFlowGraphNode* node)
}
+Ref<FlowGraph> FlowGraphNode::GetGraph() const
+{
+ BNFlowGraph* graph = BNGetFlowGraphNodeOwner(m_object);
+ if (!graph)
+ return nullptr;
+ return new CoreFlowGraph(graph);
+}
+
+
Ref<BasicBlock> FlowGraphNode::GetBasicBlock() const
{
BNBasicBlock* block = BNGetFlowGraphBasicBlock(m_object);