summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2022-08-16 20:49:02 -0400
committerRusty Wagner <rusty.wagner@gmail.com>2022-09-01 23:13:43 -0400
commit40bdfac7b71dd1cbe9223b82518053f80268e2a8 (patch)
treee53fc5710bb6e6844c1f09e967b715db0aac4444 /ui
parent2f6ebaa0042f6a02b9fcbf49b742fc25887bfdb4 (diff)
Splitting of variables
Diffstat (limited to 'ui')
-rw-r--r--ui/commands.h3
-rw-r--r--ui/flowgraphwidget.h1
-rw-r--r--ui/linearview.h1
3 files changed, 5 insertions, 0 deletions
diff --git a/ui/commands.h b/ui/commands.h
index 9eee935e..2b1ab86c 100644
--- a/ui/commands.h
+++ b/ui/commands.h
@@ -43,3 +43,6 @@ uint64_t BINARYNINJAUIAPI getInnerMostStructureOffset(
// Auto generate a structure name
std::string BINARYNINJAUIAPI createStructureName(BinaryViewRef data);
+
+std::optional<BinaryNinja::Variable> BINARYNINJAUIAPI getSplitVariableForAssignment(
+ FunctionRef func, BNFunctionGraphType ilType, uint64_t location, const BinaryNinja::Variable& var);
diff --git a/ui/flowgraphwidget.h b/ui/flowgraphwidget.h
index 13efd46c..c69f8ea7 100644
--- a/ui/flowgraphwidget.h
+++ b/ui/flowgraphwidget.h
@@ -341,6 +341,7 @@ class BINARYNINJAUIAPI FlowGraphWidget :
void tagAddressAccepted(TagTypeRef tt);
void manageAddressTags();
void mergeVariables();
+ void splitVariable();
void convertToNop();
void alwaysBranch();
diff --git a/ui/linearview.h b/ui/linearview.h
index 845862ef..85fb0d5a 100644
--- a/ui/linearview.h
+++ b/ui/linearview.h
@@ -311,6 +311,7 @@ private Q_SLOTS:
void createStruct();
void createNewTypes();
void mergeVariables();
+ void splitVariable();
//! Get the length of of the string (if there is one) starting at the
//! given address. String type is assumed to be UTF-8 by default, but the