LibWasm: Make the Module ctor generate a list of module functions

This list is supposed to be accessed rather frequently, so there's no
reason to make things slower by generating it many times on the spot.
This commit is contained in:
Ali Mohammad Pur 2021-05-01 01:07:08 +04:30 committed by Linus Groh
commit 2b755f1fbf
Notes: sideshowbarker 2024-07-18 18:13:06 +09:00
4 changed files with 70 additions and 26 deletions

View file

@ -242,7 +242,7 @@ void Printer::print(const Wasm::Expression& expression)
print(instr);
}
void Printer::print(const Wasm::Func& func)
void Printer::print(const Wasm::CodeSection::Func& func)
{
print_indent();
print("(function\n");