summaryrefslogtreecommitdiff
path: root/ui/flowgraphwidget.h
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2020-12-16 21:45:31 -0500
committerRusty Wagner <rusty.wagner@gmail.com>2020-12-18 00:16:20 -0500
commitd8030b6c75f638b92c1908d8b427299c2d0abe92 (patch)
tree35b663e0eb031dbdb4f7018e4e0bee7cef42ec70 /ui/flowgraphwidget.h
parent70ce5764abacc1a7ea518f5ccef92421a1d6d04e (diff)
Add API/UI to control dead store elimination of specific variables
Diffstat (limited to 'ui/flowgraphwidget.h')
-rw-r--r--ui/flowgraphwidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/flowgraphwidget.h b/ui/flowgraphwidget.h
index fc19c42c..7a2d6add 100644
--- a/ui/flowgraphwidget.h
+++ b/ui/flowgraphwidget.h
@@ -140,6 +140,8 @@ class BINARYNINJAUIAPI FlowGraphWidget: public QAbstractScrollArea, public View,
bool updatePositionForNode(FlowGraphNodeRef oldNode, FlowGraphNodeRef newNode, CursorPosition& pos);
void recenterUpdatedGraph(FlowGraphRef oldGraph, int oldXOfs, int oldYOfs);
+ BNDeadStoreElimination getCurrentVariableDeadStoreElimination();
+
protected:
virtual void paintEvent(QPaintEvent* event) override;
virtual void resizeEvent(QResizeEvent* event) override;
@@ -340,4 +342,6 @@ private Q_SLOTS:
void editInstruction();
void instrEditDoneEvent();
+
+ void setCurrentVariableDeadStoreElimination(BNDeadStoreElimination elimination);
};