Skip to content

Commit 296672c

Browse files
committed
Add LValue::remove
1 parent 82e65eb commit 296672c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

gccjit_sys/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,4 +677,7 @@ extern {
677677

678678
#[cfg(feature="master")]
679679
pub fn gcc_jit_context_new_alignof(ctxt: *mut gcc_jit_context, typ: *mut gcc_jit_type) -> *mut gcc_jit_rvalue;
680+
681+
#[cfg(feature="master")]
682+
pub fn gcc_jit_lvalue_remove(lvalue: *mut gcc_jit_lvalue);
680683
}

src/lvalue.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ impl<'ctx> LValue<'ctx> {
177177
}
178178
}
179179

180+
#[cfg(feature="master")]
181+
pub fn remove(&self) {
182+
unsafe {
183+
gccjit_sys::gcc_jit_lvalue_remove(self.ptr);
184+
}
185+
}
186+
180187
pub fn set_tls_model(&self, model: TlsModel) {
181188
unsafe {
182189
gccjit_sys::gcc_jit_lvalue_set_tls_model(self.ptr, model.to_sys());

0 commit comments

Comments
 (0)