From bd9872ddf850bf177298a5274a15807e6227cd3d Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 3 Dec 2020 16:40:56 -0800 Subject: [Types] Refactor signature collection to heap type collection. NFC. (#3420) This will allow writing GC types in the future, which are non-signature heap types. To allow this PR to work, it adds operator< for HeapType so that it can be used in the data structures that collect uses. Drive-by fix of a weird hack with sending a Name* in Print. --- src/wasm-binary.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wasm-binary.h') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 532cfb7ec..d7257f560 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -1175,8 +1175,8 @@ private: Module* wasm; BufferWithRandomAccess& o; BinaryIndexes indexes; - std::unordered_map typeIndices; - std::vector types; + std::unordered_map typeIndices; + std::vector types; bool debugInfo = true; std::ostream* sourceMap = nullptr; -- cgit v1.2.3