Skip to content

Commit 4bdc784

Browse files
committed
Merge landing_pad and set_cleanup into cleanup_landing_pad
1 parent 2eaf0bc commit 4bdc784

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/builder.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
12601260
// TODO(antoyo)
12611261
}
12621262

1263-
fn landing_pad(&mut self, _ty: Type<'gcc>, _pers_fn: RValue<'gcc>, _num_clauses: usize) -> RValue<'gcc> {
1263+
fn cleanup_landing_pad(&mut self, _ty: Type<'gcc>, _pers_fn: RValue<'gcc>) -> RValue<'gcc> {
12641264
let field1 = self.context.new_field(None, self.u8_type, "landing_pad_field_1");
12651265
let field2 = self.context.new_field(None, self.i32_type, "landing_pad_field_1");
12661266
let struct_type = self.context.new_struct_type(None, "landing_pad", &[field1, field2]);
@@ -1271,10 +1271,6 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
12711271
// rustc_codegen_ssa now calls the unwinding builder methods even on panic=abort.
12721272
}
12731273

1274-
fn set_cleanup(&mut self, _landing_pad: RValue<'gcc>) {
1275-
// TODO(antoyo)
1276-
}
1277-
12781274
fn resume(&mut self, _exn: RValue<'gcc>) {
12791275
unimplemented!();
12801276
}

0 commit comments

Comments
 (0)