From 2f947fd6971e284ebc0f38219c1687afa15d73b0 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Wed, 16 Jul 2025 14:41:31 -0400 Subject: [WARP] Construct a minimal version of the function object when user only wants the symbol We were previously constructing the function type, comments and variables to just throw away, wasting precious cpu cycles! --- plugins/warp/src/plugin/ffi/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/warp/src/plugin/ffi/function.rs') diff --git a/plugins/warp/src/plugin/ffi/function.rs b/plugins/warp/src/plugin/ffi/function.rs index 3db8f307..a7ec6593 100644 --- a/plugins/warp/src/plugin/ffi/function.rs +++ b/plugins/warp/src/plugin/ffi/function.rs @@ -40,7 +40,7 @@ pub unsafe extern "C" fn BNWARPGetFunction( let Ok(lifted_il) = function.lifted_il() else { return std::ptr::null_mut(); }; - let function = build_function(&function, &lifted_il); + let function = build_function(&function, &lifted_il, false); Arc::into_raw(Arc::new(function)) as *mut BNWARPFunction } -- cgit v1.3.1