From 23f619a047ff754eafb84a6ec5f666bbe9e47711 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Sun, 3 May 2026 02:30:34 -0400 Subject: Sort switch blocks in graph view by case number --- function.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'function.cpp') diff --git a/function.cpp b/function.cpp index a8ab3b99..094a50db 100644 --- a/function.cpp +++ b/function.cpp @@ -1798,6 +1798,18 @@ vector> Function::GetBlockAnnotations(Architecture* } +std::optional 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) { -- cgit v1.3.1