From a1ff274b6bca0ff8d1635c32a6d206863f0a2fc3 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Sun, 12 May 2019 15:13:38 -0700 Subject: Delete WasmBinaryBuilder::mappedGlobals (NFC) (#2098) It doesn't seem to be used anywhere and I don't know why the implementation for `WasmBinaryBuilder::getGlobalName` and `WasmBinaryBuilder::getFunctionIndexName` are different. Renamed `getFunctionIndexName` to `getFunctionName` for consistency. --- src/wasm-binary.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/wasm-binary.h') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index b4adcdcb4..fe1b5ddaf 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1068,8 +1068,10 @@ public: void readMemory(); void readSignatures(); - // gets a name in the combined function import+defined function space - Name getFunctionIndexName(Index i); + // gets a name in the combined import+defined space + Name getFunctionName(Index index); + Name getGlobalName(Index index); + void getResizableLimits(Address& initial, Address& max, bool& shared, @@ -1150,10 +1152,6 @@ public: Expression* popExpression(); Expression* popNonVoidExpression(); - // index of the Global => name. first imported globals, then internal globals - std::map mappedGlobals; - - Name getGlobalName(Index index); void validateBinary(); // validations that cannot be performed on the Module void processFunctions(); -- cgit v1.2.3