diff options
Diffstat (limited to 'src/ir/import-utils.h')
-rw-r--r-- | src/ir/import-utils.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/ir/import-utils.h b/src/ir/import-utils.h index 5f7bbc9ed..950b9bfcb 100644 --- a/src/ir/import-utils.h +++ b/src/ir/import-utils.h @@ -61,18 +61,13 @@ struct ImportInfo { return nullptr; } - Index getNumImportedGlobals() { - return importedGlobals.size(); - } + Index getNumImportedGlobals() { return importedGlobals.size(); } - Index getNumImportedFunctions() { - return importedFunctions.size(); - } + Index getNumImportedFunctions() { return importedFunctions.size(); } Index getNumImports() { return getNumImportedGlobals() + getNumImportedFunctions() + - (wasm.memory.imported() ? 1 : 0) + - (wasm.table.imported() ? 1 : 0); + (wasm.memory.imported() ? 1 : 0) + (wasm.table.imported() ? 1 : 0); } Index getNumDefinedGlobals() { @@ -87,4 +82,3 @@ struct ImportInfo { } // namespace wasm #endif // wasm_ir_import_h - |