From 8a2fbd360db96ff2f8b71ede917045d03afe38d4 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 13 Dec 2021 11:46:23 -0800 Subject: [PATCH] [msl-out] Add log tracing for functions and entry points. --- src/back/msl/writer.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/back/msl/writer.rs b/src/back/msl/writer.rs index ab50b1762f..7b01779642 100644 --- a/src/back/msl/writer.rs +++ b/src/back/msl/writer.rs @@ -2470,6 +2470,12 @@ impl Writer { ) -> Result { let mut pass_through_globals = Vec::new(); for (fun_handle, fun) in module.functions.iter() { + log::trace!( + "function {:?}, handle {:?}", + fun.name.as_deref().unwrap_or("(anonymous)"), + fun_handle + ); + let fun_info = &mod_info[fun_handle]; pass_through_globals.clear(); let mut supports_array_length = false; @@ -2601,6 +2607,12 @@ impl Writer { let mut ep_error = None; let mut supports_array_length = false; + log::trace!( + "entry point {:?}, index {:?}", + fun.name.as_deref().unwrap_or("(anonymous)"), + ep_index + ); + // skip this entry point if any global bindings are missing, // or their types are incompatible. if !options.fake_missing_bindings {