summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'function.cpp')
-rw-r--r--function.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/function.cpp b/function.cpp
index a8ab3b99..094a50db 100644
--- a/function.cpp
+++ b/function.cpp
@@ -1798,6 +1798,18 @@ vector<vector<InstructionTextToken>> Function::GetBlockAnnotations(Architecture*
}
+std::optional<int64_t> Function::GetBlockSortHint(Architecture* arch, uint64_t addr)
+{
+ int64_t result;
+ if (!BNGetFunctionBlockSortHint(m_object, arch->GetObject(), addr, &result))
+ {
+ return std::nullopt;
+ }
+
+ return result;
+}
+
+
BNIntegerDisplayType Function::GetIntegerConstantDisplayType(
Architecture* arch, uint64_t instrAddr, uint64_t value, size_t operand)
{