diff options
| author | Antoni Boucher <bouanto@zoho.com> | 2021-08-14 10:06:05 -0400 |
|---|---|---|
| committer | Antoni Boucher <bouanto@zoho.com> | 2021-08-14 10:06:05 -0400 |
| commit | 6fc069625a32c0a2ff79075eac3d784268fd9882 (patch) | |
| tree | 122c2093047826e4a5dd124c2bdb504be78482c9 /compiler/rustc_codegen_gcc/src/context.rs | |
| parent | 7132ce63cf9b61618020eb321500795b455cfdc1 (diff) | |
| parent | 0c89065b934397b62838fe3e4ef6f6352fc52daf (diff) | |
| download | rust-6fc069625a32c0a2ff79075eac3d784268fd9882.tar.gz rust-6fc069625a32c0a2ff79075eac3d784268fd9882.zip | |
Merge commit '0c89065b934397b62838fe3e4ef6f6352fc52daf' into libgccjit-codegen
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/context.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/context.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_gcc/src/context.rs b/compiler/rustc_codegen_gcc/src/context.rs index 9cbbee772c5..19243b0cbce 100644 --- a/compiler/rustc_codegen_gcc/src/context.rs +++ b/compiler/rustc_codegen_gcc/src/context.rs @@ -14,7 +14,6 @@ use gccjit::{ use rustc_codegen_ssa::base::wants_msvc_seh; use rustc_codegen_ssa::traits::{ BackendTypes, - BaseTypeMethods, MiscMethods, }; use rustc_data_structures::base_n; @@ -349,12 +348,15 @@ impl<'gcc, 'tcx> MiscMethods<'tcx> for CodegenCx<'gcc, 'tcx> { .unwrap().unwrap(), ), _ => { - let name = if wants_msvc_seh(self.sess()) { + let _name = if wants_msvc_seh(self.sess()) { "__CxxFrameHandler3" } else { "rust_eh_personality" }; - self.declare_func(name, self.type_i32(), &[], true) + //let func = self.declare_func(name, self.type_i32(), &[], true); + // FIXME: this hack should not be needed. That will probably be removed when + // unwinding support is added. + self.context.new_rvalue_from_int(self.int_type, 0) } }; //attributes::apply_target_cpu_attr(self, llfn); |
