From 04e7a7eb4b2745fcf1e62ae6957c8cb03fe09bfc Mon Sep 17 00:00:00 2001 From: pca006132 Date: Thu, 17 Mar 2022 15:03:22 +0800 Subject: [PATCH] nac3artiq: support more exceptions --- nac3artiq/src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index c34f2438..751fc78b 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -467,7 +467,12 @@ impl Nac3 { "ZeroDivisionError", "IndexError", "ValueError", - "RuntimeError" + "RuntimeError", + "AssertionError", + "KeyError", + "NotImplementedError", + "OverflowError", + "IOError" ]; add_exceptions(&mut composer, &mut builtins_def, &mut builtins_ty, &exception_names); @@ -750,6 +755,7 @@ impl Nac3 { builder.set_inliner_with_threshold(255); builder.populate_module_pass_manager(&passes); passes.run_on(&main); + main.print_to_stderr(); let (triple, features) = match isa { Isa::Host => (