We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 42ef442 + 296672c commit 0789f13Copy full SHA for 0789f13
gccjit_sys/src/lib.rs
@@ -681,4 +681,7 @@ extern {
681
682
#[cfg(feature="master")]
683
pub fn gcc_jit_context_new_alignof(ctxt: *mut gcc_jit_context, typ: *mut gcc_jit_type) -> *mut gcc_jit_rvalue;
684
+
685
+ #[cfg(feature="master")]
686
+ pub fn gcc_jit_lvalue_remove(lvalue: *mut gcc_jit_lvalue);
687
}
src/lvalue.rs
@@ -177,6 +177,13 @@ impl<'ctx> LValue<'ctx> {
177
178
179
180
181
+ pub fn remove(&self) {
182
+ unsafe {
183
+ gccjit_sys::gcc_jit_lvalue_remove(self.ptr);
184
+ }
185
186
187
pub fn set_tls_model(&self, model: TlsModel) {
188
unsafe {
189
gccjit_sys::gcc_jit_lvalue_set_tls_model(self.ptr, model.to_sys());
0 commit comments