about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2022-01-24 13:50:12 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2022-01-24 14:10:05 +0100
commit2eaf0bc20ac8476684c7e71d84071516c2c6309e (patch)
treec07b08bcc5aed6eaf7af813e56bd514754a0ef1f /src
parent81597f27217b10380c59742151dd0e5eee580c40 (diff)
downloadrust-2eaf0bc20ac8476684c7e71d84071516c2c6309e.tar.gz
rust-2eaf0bc20ac8476684c7e71d84071516c2c6309e.zip
Merge add_handler into catch_switch
Some codegen backends may require all handlers to be immediately known
Diffstat (limited to 'src')
-rw-r--r--src/builder.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/builder.rs b/src/builder.rs
index d3fdfccd8a5..185aa3a5b40 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -1291,11 +1291,12 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
         unimplemented!();
     }
 
-    fn catch_switch(&mut self, _parent: Option<RValue<'gcc>>, _unwind: Option<Block<'gcc>>, _num_handlers: usize) -> RValue<'gcc> {
-        unimplemented!();
-    }
-
-    fn add_handler(&mut self, _catch_switch: RValue<'gcc>, _handler: Block<'gcc>) {
+    fn catch_switch(
+        &mut self,
+        _parent: Option<RValue<'gcc>>,
+        _unwind: Option<Block<'gcc>>,
+        _handlers: &[Block<'gcc>],
+    ) -> RValue<'gcc> {
         unimplemented!();
     }