Add support for cold attribute
This commit is contained in:
parent
1bbee3e217
commit
afc6489394
1 changed files with 4 additions and 0 deletions
|
|
@ -114,6 +114,10 @@ pub fn from_fn_attrs<'gcc, 'tcx>(
|
|||
if let Some(attr) = inline_attr(cx, inline) {
|
||||
func.add_attribute(attr);
|
||||
}
|
||||
|
||||
if codegen_fn_attrs.flags.contains(CodegenFnAttrFlags::COLD) {
|
||||
func.add_attribute(FnAttribute::Cold);
|
||||
}
|
||||
}
|
||||
|
||||
let function_features =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue