diff --git a/gccjit_sys/src/lib.rs b/gccjit_sys/src/lib.rs index 121bbbb..ed232cd 100644 --- a/gccjit_sys/src/lib.rs +++ b/gccjit_sys/src/lib.rs @@ -677,4 +677,7 @@ extern { #[cfg(feature="master")] pub fn gcc_jit_context_new_alignof(ctxt: *mut gcc_jit_context, typ: *mut gcc_jit_type) -> *mut gcc_jit_rvalue; + + #[cfg(feature="master")] + pub fn gcc_jit_lvalue_remove(lvalue: *mut gcc_jit_lvalue); } diff --git a/src/lvalue.rs b/src/lvalue.rs index 8749918..ce54745 100644 --- a/src/lvalue.rs +++ b/src/lvalue.rs @@ -177,6 +177,13 @@ impl<'ctx> LValue<'ctx> { } } + #[cfg(feature="master")] + pub fn remove(&self) { + unsafe { + gccjit_sys::gcc_jit_lvalue_remove(self.ptr); + } + } + pub fn set_tls_model(&self, model: TlsModel) { unsafe { gccjit_sys::gcc_jit_lvalue_set_tls_model(self.ptr, model.to_sys());