diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2020-12-16 21:45:31 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2020-12-18 00:16:20 -0500 |
| commit | d8030b6c75f638b92c1908d8b427299c2d0abe92 (patch) | |
| tree | 35b663e0eb031dbdb4f7018e4e0bee7cef42ec70 /ui | |
| parent | 70ce5764abacc1a7ea518f5ccef92421a1d6d04e (diff) | |
Add API/UI to control dead store elimination of specific variables
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/flowgraphwidget.h | 4 | ||||
| -rw-r--r-- | ui/linearview.h | 4 |
2 files changed, 8 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); }; diff --git a/ui/linearview.h b/ui/linearview.h index 3bd446be..7498bdef 100644 --- a/ui/linearview.h +++ b/ui/linearview.h @@ -209,6 +209,8 @@ class BINARYNINJAUIAPI LinearView: public QAbstractScrollArea, public View, publ void getCurrentOffsetByTypeInternal(TypeRef resType, uint64_t baseAddr, uint64_t& begin, uint64_t& end, bool singleLine, std::set<TypeRef>& seen); + BNDeadStoreElimination getCurrentVariableDeadStoreElimination(); + private Q_SLOTS: void adjustSize(int width, int height); void viewInHexEditor(); @@ -274,6 +276,8 @@ private Q_SLOTS: void editInstruction(); void instrEditDoneEvent(); + void setCurrentVariableDeadStoreElimination(BNDeadStoreElimination elimination); + Q_SIGNALS: void notifyResizeEvent(int width, int height); |
