File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ pub enum gcc_jit_bool_option {
55
55
GCC_JIT_BOOL_OPTION_DUMP_EVERYTHING ,
56
56
GCC_JIT_BOOL_OPTION_SELFCHECK_GC ,
57
57
GCC_JIT_BOOL_OPTION_KEEP_INTERMEDIATES ,
58
+ GCC_JIT_BOOL_OPTION_MANGLED_FUNCTION_NAME ,
58
59
GCC_JIT_NUM_BOOL_OPTIONS
59
60
}
60
61
@@ -272,6 +273,7 @@ pub enum gcc_jit_fn_attribute
272
273
GCC_JIT_FN_ATTRIBUTE_CONST ,
273
274
GCC_JIT_FN_ATTRIBUTE_WEAK ,
274
275
GCC_JIT_FN_ATTRIBUTE_NONNULL ,
276
+ GCC_JIT_FN_ATTRIBUTE_JIT_DWARF_SHORT_NAME ,
275
277
}
276
278
277
279
#[ cfg( feature="master" ) ]
Original file line number Diff line number Diff line change @@ -207,6 +207,14 @@ impl<'ctx> Context<'ctx> {
207
207
}
208
208
}
209
209
210
+ pub fn set_mangled_function_name ( & self , value : bool ) {
211
+ unsafe {
212
+ gccjit_sys:: gcc_jit_context_set_bool_option ( self . ptr ,
213
+ GCC_JIT_BOOL_OPTION_MANGLED_FUNCTION_NAME ,
214
+ value as i32 ) ;
215
+ }
216
+ }
217
+
210
218
pub fn set_debug_info ( & self , value : bool ) {
211
219
unsafe {
212
220
gccjit_sys:: gcc_jit_context_set_bool_option ( self . ptr ,
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ pub enum FnAttribute<'a> {
60
60
Const ,
61
61
Weak ,
62
62
NonNull ( Vec < std:: ffi:: c_int > ) ,
63
+ JITDwarfShortName ( String )
63
64
}
64
65
65
66
#[ cfg( feature="master" ) ]
@@ -84,6 +85,9 @@ impl<'a> FnAttribute<'a> {
84
85
) ;
85
86
AttributeValue :: IntArray ( value)
86
87
}
88
+ FnAttribute :: JITDwarfShortName ( ref value) => {
89
+ AttributeValue :: String ( value)
90
+ }
87
91
}
88
92
}
89
93
@@ -102,6 +106,7 @@ impl<'a> FnAttribute<'a> {
102
106
FnAttribute :: Const => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_CONST ,
103
107
FnAttribute :: Weak => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_WEAK ,
104
108
FnAttribute :: NonNull ( _) => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_NONNULL ,
109
+ FnAttribute :: JITDwarfShortName ( _) => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_JIT_DWARF_SHORT_NAME ,
105
110
}
106
111
}
107
112
}
You can’t perform that action at this time.
0 commit comments