summaryrefslogtreecommitdiff
path: root/function.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2026-05-03 02:30:34 -0400
committerGlenn Smith <glenn@vector35.com>2026-05-20 17:10:35 -0400
commit23f619a047ff754eafb84a6ec5f666bbe9e47711 (patch)
tree9d128bc11c50c2a2bb9fbaa5ce291062afa9b979 /function.cpp
parent06611c17ae5ee5936889ff029cac042fdba8a0c5 (diff)
Sort switch blocks in graph view by case number
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)
{