summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-12-03 16:40:56 -0800
committerGitHub <noreply@github.com>2020-12-03 16:40:56 -0800
commitbd9872ddf850bf177298a5274a15807e6227cd3d (patch)
tree7336966d47bf4b54610e62a835e06f4ec29ceddc /src/wasm-binary.h
parentd6444b5032a64f3abe35bf60eb96e151669d2fa5 (diff)
downloadbinaryen-bd9872ddf850bf177298a5274a15807e6227cd3d.tar.gz
binaryen-bd9872ddf850bf177298a5274a15807e6227cd3d.tar.bz2
binaryen-bd9872ddf850bf177298a5274a15807e6227cd3d.zip
[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.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h4
1 files changed, 2 insertions, 2 deletions
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<Signature, Index> typeIndices;
- std::vector<Signature> types;
+ std::unordered_map<HeapType, Index> typeIndices;
+ std::vector<HeapType> types;
bool debugInfo = true;
std::ostream* sourceMap = nullptr;