From 979eaa52e649735f6a690db1a87005dd9e10540d Mon Sep 17 00:00:00 2001 From: Akosh Farkash Date: Fri, 10 Jan 2025 15:48:35 +0000 Subject: [PATCH] Shorten it to show_ssa_pass --- compiler/noirc_driver/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/noirc_driver/src/lib.rs b/compiler/noirc_driver/src/lib.rs index 2970027c98..a7e7e2d4e2 100644 --- a/compiler/noirc_driver/src/lib.rs +++ b/compiler/noirc_driver/src/lib.rs @@ -73,7 +73,7 @@ pub struct CompileOptions { /// Only show SSA passes whose name contains the provided string. /// This setting takes precedence over `show_ssa` if it's not empty. #[arg(long, hide = true)] - pub show_ssa_pass_name: Option, + pub show_ssa_pass: Option, /// Only show the SSA and ACIR for the contract function with a given name. #[arg(long, hide = true)] @@ -500,7 +500,7 @@ fn compile_contract_inner( if let Some(ref name_filter) = options.show_contract_fn { let show = name == *name_filter; options.show_ssa &= show; - options.show_ssa_pass_name = options.show_ssa_pass_name.filter(|_| show); + options.show_ssa_pass = options.show_ssa_pass.filter(|_| show); }; let function = match compile_no_check(context, &options, function_id, None, true) { @@ -659,7 +659,7 @@ pub fn compile_no_check( let return_visibility = program.return_visibility; let ssa_evaluator_options = noirc_evaluator::ssa::SsaEvaluatorOptions { - ssa_logging: match &options.show_ssa_pass_name { + ssa_logging: match &options.show_ssa_pass { Some(string) => SsaLogging::Contains(string.clone()), None => { if options.show_ssa {