From c96746fdfe06366549717cf233d280fba22d7322 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Sun, 5 Feb 2023 09:13:57 -0500 Subject: Add IsConstantData to the C++ RegisterValue API. --- function.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index 581121c2..37192ba0 100644 --- a/function.cpp +++ b/function.cpp @@ -110,6 +110,12 @@ bool RegisterValue::IsConstant() const } +bool RegisterValue::IsConstantData() const +{ + return ((state & ConstantDataValue) == ConstantDataValue); +} + + BNRegisterValue RegisterValue::ToAPIObject() { BNRegisterValue result; -- cgit v1.3.1