From 82e8eaca7db9dc7284e3fb382eecbfbecef7bcb6 Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Mon, 29 Sep 2025 17:02:13 -0700 Subject: [ObjC] Add support for removing runtime calls that perform retain count operations A new activity is added that will remove calls to `objc_retain`, `objc_release`, `objc_autorelease`, and related functions. It is disabled by default due to the fact it changes the semantics of the code. It can be enabled on a per-function basis via the Function Settings context menu or command palette entry. Alternatively, it can be enabled in Open with Options or in user settings if a user would prefer it be on for an entire file or for all files they open. For now the activity is only eligible within arm64 binaries. Supporting x86_64 will require matching some slightly different IL patterns. --- plugins/workflow_objc/src/activities/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/workflow_objc/src/activities/mod.rs') diff --git a/plugins/workflow_objc/src/activities/mod.rs b/plugins/workflow_objc/src/activities/mod.rs index f1132d03..98c9770f 100644 --- a/plugins/workflow_objc/src/activities/mod.rs +++ b/plugins/workflow_objc/src/activities/mod.rs @@ -1,3 +1,4 @@ pub mod inline_stubs; pub mod objc_msg_send_calls; +pub mod remove_memory_management; pub mod super_init; -- cgit v1.3.1