Skip to content

Commit b75873a

Browse files
committed
Revert "[HACK]"
This reverts commit 4339905.
1 parent e449238 commit b75873a

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

src/abi/mod.rs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,6 @@ pub(crate) fn get_function_sig<'tcx>(
7979
default_call_conv: CallConv,
8080
inst: Instance<'tcx>,
8181
) -> Signature {
82-
// FIXME remove this hack
83-
if tcx.symbol_name(inst).name == "rust_eh_personality" {
84-
return Signature {
85-
params: vec![
86-
AbiParam::new(types::I32),
87-
AbiParam::new(types::I32),
88-
AbiParam::new(types::I64),
89-
AbiParam::new(types::I64 /* FIXME fx.pointer_type */),
90-
AbiParam::new(types::I64 /* FIXME fx.pointer_type */),
91-
],
92-
returns: vec![AbiParam::new(types::I32)],
93-
call_conv: default_call_conv,
94-
};
95-
}
96-
9782
assert!(!inst.args.has_infer());
9883
clif_sig_from_fn_abi(
9984
tcx,
@@ -314,10 +299,7 @@ pub(crate) fn codegen_fn_prelude<'tcx>(fx: &mut FunctionCx<'_, '_, 'tcx>, start_
314299
}
315300

316301
assert!(arg_abis_iter.next().is_none(), "ArgAbi left behind");
317-
// FIXME remove hack
318-
if fx.symbol_name != "rust_eh_personality" {
319-
assert!(block_params_iter.next().is_none(), "arg_value left behind");
320-
}
302+
assert!(block_params_iter.next().is_none(), "arg_value left behind");
321303

322304
self::comments::add_locals_header_comment(fx);
323305

src/debuginfo/unwind.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ impl UnwindContext {
3838
gimli::DW_EH_PE_absptr
3939
};
4040

41-
// FIXME only add personality function and lsda when necessary: https://github.com/rust-lang/rust/blob/1f76d219c906f0112bb1872f33aa977164c53fa6/compiler/rustc_codegen_ssa/src/mir/mod.rs#L200-L204
42-
4341
cie.fde_address_encoding = ptr_encoding;
4442

4543
// FIXME only add personality function and lsda when necessary: https://github.com/rust-lang/rust/blob/1f76d219c906f0112bb1872f33aa977164c53fa6/compiler/rustc_codegen_ssa/src/mir/mod.rs#L200-L204

0 commit comments

Comments
 (0)