diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-05-12 15:13:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-12 15:13:38 -0700 |
commit | a1ff274b6bca0ff8d1635c32a6d206863f0a2fc3 (patch) | |
tree | 457fb108ef62c0ceee8a055dbab829d313e9c858 /src/wasm-binary.h | |
parent | 70434ef31994391ae28c4aaaffd0d4f470da7fdc (diff) | |
download | binaryen-a1ff274b6bca0ff8d1635c32a6d206863f0a2fc3.tar.gz binaryen-a1ff274b6bca0ff8d1635c32a6d206863f0a2fc3.tar.bz2 binaryen-a1ff274b6bca0ff8d1635c32a6d206863f0a2fc3.zip |
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.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r-- | src/wasm-binary.h | 10 |
1 files changed, 4 insertions, 6 deletions
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<Index, Name> mappedGlobals; - - Name getGlobalName(Index index); void validateBinary(); // validations that cannot be performed on the Module void processFunctions(); |