File tree 3 files changed +9
-0
lines changed
compiler/rustc_codegen_llvm/src
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -662,6 +662,10 @@ impl<'ll> CodegenCx<'ll, '_> {
662
662
let t_f32 = self . type_f32 ( ) ;
663
663
let t_f64 = self . type_f64 ( ) ;
664
664
let t_metadata = self . type_metadata ( ) ;
665
+ let t_token = self . type_token ( ) ;
666
+
667
+ ifn ! ( "llvm.wasm.get.exception" , fn ( t_token) -> i8p) ;
668
+ ifn ! ( "llvm.wasm.get.ehselector" , fn ( t_token) -> t_i32) ;
665
669
666
670
ifn ! ( "llvm.wasm.trunc.unsigned.i32.f32" , fn ( t_f32) -> t_i32) ;
667
671
ifn ! ( "llvm.wasm.trunc.unsigned.i32.f64" , fn ( t_f64) -> t_i32) ;
Original file line number Diff line number Diff line change @@ -1071,6 +1071,7 @@ extern "C" {
1071
1071
1072
1072
// Operations on other types
1073
1073
pub fn LLVMVoidTypeInContext ( C : & Context ) -> & Type ;
1074
+ pub fn LLVMTokenTypeInContext ( C : & Context ) -> & Type ;
1074
1075
pub fn LLVMMetadataTypeInContext ( C : & Context ) -> & Type ;
1075
1076
1076
1077
// Operations on all values
Original file line number Diff line number Diff line change @@ -52,6 +52,10 @@ impl<'ll> CodegenCx<'ll, '_> {
52
52
unsafe { llvm:: LLVMVoidTypeInContext ( self . llcx ) }
53
53
}
54
54
55
+ pub ( crate ) fn type_token ( & self ) -> & ' ll Type {
56
+ unsafe { llvm:: LLVMTokenTypeInContext ( self . llcx ) }
57
+ }
58
+
55
59
pub ( crate ) fn type_metadata ( & self ) -> & ' ll Type {
56
60
unsafe { llvm:: LLVMMetadataTypeInContext ( self . llcx ) }
57
61
}
You can’t perform that action at this time.
0 commit comments