File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ pub enum gcc_jit_fn_attribute
264
264
GCC_JIT_FN_ATTRIBUTE_USED ,
265
265
GCC_JIT_FN_ATTRIBUTE_VISIBILITY ,
266
266
GCC_JIT_FN_ATTRIBUTE_COLD ,
267
+ GCC_JIT_FN_ATTRIBUTE_RETURNS_TWICE ,
267
268
}
268
269
269
270
#[ cfg( feature="master" ) ]
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ pub enum FnAttribute<'a> {
56
56
Used ,
57
57
Visibility ( Visibility ) ,
58
58
Cold ,
59
+ ReturnsTwice ,
59
60
}
60
61
61
62
#[ cfg( feature="master" ) ]
@@ -68,7 +69,8 @@ impl<'a> FnAttribute<'a> {
68
69
| FnAttribute :: Inline
69
70
| FnAttribute :: NoInline
70
71
| FnAttribute :: Used
71
- | FnAttribute :: Cold => AttributeValue :: None ,
72
+ | FnAttribute :: Cold
73
+ | FnAttribute :: ReturnsTwice => AttributeValue :: None ,
72
74
}
73
75
}
74
76
@@ -81,6 +83,7 @@ impl<'a> FnAttribute<'a> {
81
83
FnAttribute :: Used => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_USED ,
82
84
FnAttribute :: Visibility ( _) => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_VISIBILITY ,
83
85
FnAttribute :: Cold => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_COLD ,
86
+ FnAttribute :: ReturnsTwice => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_RETURNS_TWICE ,
84
87
}
85
88
}
86
89
}
You can’t perform that action at this time.
0 commit comments