Add support for "pure" function attribute
This commit is contained in:
parent
3a74f9352f
commit
c04a631ea6
@ -121,6 +121,9 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
|
||||
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::FFI_RETURNS_TWICE) {
|
||||
func.add_attribute(FnAttribute::ReturnsTwice);
|
||||
}
|
||||
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::FFI_PURE) {
|
||||
func.add_attribute(FnAttribute::Pure);
|
||||
}
|
||||
}
|
||||
|
||||
let function_features =
|
||||
|
Loading…
x
Reference in New Issue
Block a user