summaryrefslogtreecommitdiff
path: root/view/macho/machoview.cpp
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-04-29 20:25:31 -0400
committerMason Reed <mason@vector35.com>2024-05-03 11:25:32 -0400
commit0be4dd25ffd6b0308053d9b5c34987d1452b01a7 (patch)
tree4e498b3925b318143580f1c1cd40e2df9314c17f /view/macho/machoview.cpp
parent5010c748879804e7c3433e2453bc4844123d8d9e (diff)
Use LLVM demangler as a fallback for GNU and MS demanglers
Diffstat (limited to 'view/macho/machoview.cpp')
-rw-r--r--view/macho/machoview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/view/macho/machoview.cpp b/view/macho/machoview.cpp
index 8a220515..5f7b3f94 100644
--- a/view/macho/machoview.cpp
+++ b/view/macho/machoview.cpp
@@ -2334,6 +2334,10 @@ Ref<Symbol> MachoView::DefineMachoSymbol(
if (!typeRef && m_extractMangledTypes && !GetDefaultPlatform()->GetFunctionByName(rawName))
typeRef = demangledType;
}
+ else if (!m_extractMangledTypes && DemangleLLVM(rawName, varName, m_simplifyTemplates)) {
+ shortName = varName.GetString();
+ fullName = shortName;
+ }
else
{
m_logger->LogDebug("Failed to demangle name: '%s'\n", rawName.c_str());