Skip to content

Commit 2eaf0bc

Browse files
committed
Merge add_handler into catch_switch
Some codegen backends may require all handlers to be immediately known
1 parent 81597f2 commit 2eaf0bc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/builder.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,11 +1291,12 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
12911291
unimplemented!();
12921292
}
12931293

1294-
fn catch_switch(&mut self, _parent: Option<RValue<'gcc>>, _unwind: Option<Block<'gcc>>, _num_handlers: usize) -> RValue<'gcc> {
1295-
unimplemented!();
1296-
}
1297-
1298-
fn add_handler(&mut self, _catch_switch: RValue<'gcc>, _handler: Block<'gcc>) {
1294+
fn catch_switch(
1295+
&mut self,
1296+
_parent: Option<RValue<'gcc>>,
1297+
_unwind: Option<Block<'gcc>>,
1298+
_handlers: &[Block<'gcc>],
1299+
) -> RValue<'gcc> {
12991300
unimplemented!();
13001301
}
13011302

0 commit comments

Comments
 (0)