File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -263,6 +263,7 @@ pub enum gcc_jit_fn_attribute
263
263
GCC_JIT_FN_ATTRIBUTE_TARGET ,
264
264
GCC_JIT_FN_ATTRIBUTE_USED ,
265
265
GCC_JIT_FN_ATTRIBUTE_VISIBILITY ,
266
+ GCC_JIT_FN_ATTRIBUTE_COLD ,
266
267
}
267
268
268
269
#[ cfg( feature="master" ) ]
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ pub enum FnAttribute<'a> {
55
55
Target ( & ' a str ) ,
56
56
Used ,
57
57
Visibility ( Visibility ) ,
58
+ Cold ,
58
59
}
59
60
60
61
#[ cfg( feature="master" ) ]
@@ -63,8 +64,11 @@ impl<'a> FnAttribute<'a> {
63
64
match * self {
64
65
FnAttribute :: Target ( target) => AttributeValue :: String ( target) ,
65
66
FnAttribute :: Visibility ( visibility) => AttributeValue :: String ( visibility. as_str ( ) ) ,
66
- FnAttribute :: AlwaysInline | FnAttribute :: Inline | FnAttribute :: NoInline | FnAttribute :: Used =>
67
- AttributeValue :: None ,
67
+ FnAttribute :: AlwaysInline
68
+ | FnAttribute :: Inline
69
+ | FnAttribute :: NoInline
70
+ | FnAttribute :: Used
71
+ | FnAttribute :: Cold => AttributeValue :: None ,
68
72
}
69
73
}
70
74
@@ -76,6 +80,7 @@ impl<'a> FnAttribute<'a> {
76
80
FnAttribute :: Target ( _) => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_TARGET ,
77
81
FnAttribute :: Used => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_USED ,
78
82
FnAttribute :: Visibility ( _) => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_VISIBILITY ,
83
+ FnAttribute :: Cold => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_COLD ,
79
84
}
80
85
}
81
86
}
You can’t perform that action at this time.
0 commit comments