File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -666,4 +666,8 @@ extern {
666
666
667
667
#[ cfg( feature="master" ) ]
668
668
pub fn gcc_jit_function_new_temp ( func : * mut gcc_jit_function , loc : * mut gcc_jit_location , ty : * mut gcc_jit_type ) -> * mut gcc_jit_lvalue ;
669
+
670
+ #[ cfg( feature="master" ) ]
671
+ pub fn gcc_jit_rvalue_set_location ( rvalue : * mut gcc_jit_rvalue ,
672
+ loc : * mut gcc_jit_location ) ;
669
673
}
Original file line number Diff line number Diff line change @@ -101,6 +101,15 @@ impl<'ctx> RValue<'ctx> {
101
101
}
102
102
}
103
103
104
+ /// Sets the location of this RValue.
105
+ #[ cfg( feature="master" ) ]
106
+ pub unsafe fn set_location ( & self , loc : Location ) {
107
+ unsafe {
108
+ let loc_ptr = location:: get_ptr ( & loc) ;
109
+ gccjit_sys:: gcc_jit_rvalue_set_location ( self . ptr , loc_ptr) ;
110
+ }
111
+ }
112
+
104
113
/// Given an RValue x and a Field f, returns an RValue representing
105
114
/// C's x.f.
106
115
pub fn access_field ( & self ,
You can’t perform that action at this time.
0 commit comments