summaryrefslogtreecommitdiff
path: root/plugins/workflow_swift/src/lib.rs
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2026-02-18 19:43:43 -0800
committerMark Rowe <mark@vector35.com>2026-03-23 16:08:45 -0700
commit7aa5bd46fc2343458dff6a24ec2c67169fcac34c (patch)
tree59d68c2afafde453abcf4795f996784f4ab9740e /plugins/workflow_swift/src/lib.rs
parenta49c29b7aea694e41fb92b100325ce34affb413f (diff)
[Swift] Initial demangling support
Diffstat (limited to 'plugins/workflow_swift/src/lib.rs')
-rw-r--r--plugins/workflow_swift/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/workflow_swift/src/lib.rs b/plugins/workflow_swift/src/lib.rs
index b8ddb7a4..2e97a43b 100644
--- a/plugins/workflow_swift/src/lib.rs
+++ b/plugins/workflow_swift/src/lib.rs
@@ -1,4 +1,8 @@
+mod demangler;
+
use binaryninja::add_optional_plugin_dependency;
+use binaryninja::demangle::Demangler;
+use demangler::SwiftDemangler;
#[no_mangle]
#[allow(non_snake_case)]
@@ -12,5 +16,7 @@ pub extern "C" fn CorePluginDependencies() {
pub extern "C" fn CorePluginInit() -> bool {
binaryninja::tracing_init!("Plugin.Swift");
+ Demangler::register("Swift", SwiftDemangler);
+
true
}