Skip to content

Commit e6109eb

Browse files
authored
Merge pull request #27 from antoyo/update/gcc
Update for rebased gcc
2 parents 1305cda + c7f5b25 commit e6109eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gccjit_sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ extern {
624624
pub fn gcc_jit_function_add_integer_array_attribute(func: *mut gcc_jit_function, attribute: gcc_jit_fn_attribute, value: *const c_int, length: size_t);
625625

626626
#[cfg(feature="master")]
627-
pub fn gcc_jit_lvalue_add_attribute(variable: *mut gcc_jit_lvalue, attribute: gcc_jit_variable_attribute, value: *const c_char);
627+
pub fn gcc_jit_lvalue_add_string_attribute(variable: *mut gcc_jit_lvalue, attribute: gcc_jit_variable_attribute, value: *const c_char);
628628

629629
#[cfg(feature="master")]
630630
pub fn gcc_jit_block_add_try_catch(block: *mut gcc_jit_block, loc: *mut gcc_jit_location, try_block: *mut gcc_jit_block, catch_block: *mut gcc_jit_block);

src/lvalue.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ impl<'ctx> LValue<'ctx> {
218218
}
219219

220220
#[cfg(feature="master")]
221-
pub fn add_attribute(&self, attribute: VarAttribute) {
221+
pub fn add_string_attribute(&self, attribute: VarAttribute) {
222222
let value = attribute.get_value();
223223
match value {
224224
AttributeValue::Int(_) => unimplemented!(),
@@ -227,7 +227,7 @@ impl<'ctx> LValue<'ctx> {
227227
AttributeValue::String(string) => {
228228
let cstr = CString::new(string).unwrap();
229229
unsafe {
230-
gccjit_sys::gcc_jit_lvalue_add_attribute(self.ptr, attribute.to_sys(), cstr.as_ptr());
230+
gccjit_sys::gcc_jit_lvalue_add_string_attribute(self.ptr, attribute.to_sys(), cstr.as_ptr());
231231
}
232232
},
233233
}

0 commit comments

Comments
 (0)