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 @@ -265,6 +265,7 @@ pub enum gcc_jit_fn_attribute
265265 GCC_JIT_FN_ATTRIBUTE_USED ,
266266 GCC_JIT_FN_ATTRIBUTE_VISIBILITY ,
267267 GCC_JIT_FN_ATTRIBUTE_COLD ,
268+ GCC_JIT_FN_ATTRIBUTE_RETURNS_TWICE ,
268269}
269270
270271#[ cfg( feature="master" ) ]
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ pub enum FnAttribute<'a> {
5656 Used ,
5757 Visibility ( Visibility ) ,
5858 Cold ,
59+ ReturnsTwice ,
5960}
6061
6162#[ cfg( feature="master" ) ]
@@ -68,7 +69,8 @@ impl<'a> FnAttribute<'a> {
6869 | FnAttribute :: Inline
6970 | FnAttribute :: NoInline
7071 | FnAttribute :: Used
71- | FnAttribute :: Cold => AttributeValue :: None ,
72+ | FnAttribute :: Cold
73+ | FnAttribute :: ReturnsTwice => AttributeValue :: None ,
7274 }
7375 }
7476
@@ -81,6 +83,7 @@ impl<'a> FnAttribute<'a> {
8183 FnAttribute :: Used => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_USED ,
8284 FnAttribute :: Visibility ( _) => gccjit_sys:: gcc_jit_fn_attribute:: GCC_JIT_FN_ATTRIBUTE_VISIBILITY ,
8385 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 ,
8487 }
8588 }
8689}
You can’t perform that action at this time.
0 commit comments