summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2023-02-05 09:13:57 -0500
committerBrian Potchik <brian@vector35.com>2023-02-05 09:13:57 -0500
commitc96746fdfe06366549717cf233d280fba22d7322 (patch)
tree543140b3dc20de6f7efd965c96473b607e8cd501 /function.cpp
parent0fa4582e13e9a3cb8a4ac662cfef0a0735ad4a78 (diff)
Add IsConstantData to the C++ RegisterValue API.
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp6
1 files changed, 6 insertions, 0 deletions
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;