File tree Expand file tree Collapse file tree 2 files changed +6
-29
lines changed Expand file tree Collapse file tree 2 files changed +6
-29
lines changed Original file line number Diff line number Diff line change 3030
3131#define DEBUG_TYPE " wasm-translate"
3232
33- // Statistics.
34- STATISTIC (numFunctionSectionItems, " Parsed functions" );
35- STATISTIC (numGlobalSectionItems, " Parsed globals" );
36- STATISTIC (numMemorySectionItems, " Parsed memories" );
37- STATISTIC (numTableSectionItems, " Parsed tables" );
38-
3933static_assert (CHAR_BIT == 8 ,
4034 " This code expects std::byte to be exactly 8 bits" );
4135
@@ -1047,10 +1041,12 @@ class WasmBinaryParser {
10471041 return ;
10481042
10491043 // Copy over sizes of containers into statistics.
1050- numFunctionSectionItems = symbols.funcSymbols .size ();
1051- numGlobalSectionItems = symbols.globalSymbols .size ();
1052- numMemorySectionItems = symbols.memSymbols .size ();
1053- numTableSectionItems = symbols.tableSymbols .size ();
1044+ LDBG () << " WASM Imports:"
1045+ << " \n "
1046+ << " - Num functions: " << symbols.funcSymbols .size () << " \n "
1047+ << " - Num globals: " << symbols.globalSymbols .size () << " \n "
1048+ << " - Num memories: " << symbols.memSymbols .size () << " \n "
1049+ << " - Num tables: " << symbols.tableSymbols .size ();
10541050 }
10551051
10561052 ModuleOp getModule () {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments