about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-01-24 13:57:32 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2022-01-24 14:10:05 +0100
commit4bdc78436b2c323be505d2a15ab6c592c5a9c9c8 (patch)
treee3fa1e2605253bcb2a9eba0c78247d97cbc4cbdd
parent2eaf0bc20ac8476684c7e71d84071516c2c6309e (diff)
downloadrust-4bdc78436b2c323be505d2a15ab6c592c5a9c9c8.tar.gz
rust-4bdc78436b2c323be505d2a15ab6c592c5a9c9c8.zip
Merge landing_pad and set_cleanup into cleanup_landing_pad
-rw-r--r--src/builder.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 185aa3a5b40..ffb77e16a14 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -1260,7 +1260,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
         // TODO(antoyo)
     }
 
-    fn landing_pad(&mut self, _ty: Type<'gcc>, _pers_fn: RValue<'gcc>, _num_clauses: usize) -> RValue<'gcc> {
+    fn cleanup_landing_pad(&mut self, _ty: Type<'gcc>, _pers_fn: RValue<'gcc>) -> RValue<'gcc> {
         let field1 = self.context.new_field(None, self.u8_type, "landing_pad_field_1");
         let field2 = self.context.new_field(None, self.i32_type, "landing_pad_field_1");
         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> {
         // rustc_codegen_ssa now calls the unwinding builder methods even on panic=abort.
     }
 
-    fn set_cleanup(&mut self, _landing_pad: RValue<'gcc>) {
-        // TODO(antoyo)
-    }
-
     fn resume(&mut self, _exn: RValue<'gcc>) {
         unimplemented!();
     }