summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-08-29 08:17:34 -0700
committerGitHub <noreply@github.com>2022-08-29 08:17:34 -0700
commitfea999ea89f89947cb72a1846ed1743dbe935d09 (patch)
treebe7c5ea933cda5b09878ee3a63ba5b75f3ba623c /src/wasm-binary.h
parentd5b6972c9963be063d9f8db4ed8c99166c1c7ac5 (diff)
downloadbinaryen-fea999ea89f89947cb72a1846ed1743dbe935d09.tar.gz
binaryen-fea999ea89f89947cb72a1846ed1743dbe935d09.tar.bz2
binaryen-fea999ea89f89947cb72a1846ed1743dbe935d09.zip
[NFC] Simplify binary reading logic for globals (#4980)
Similar to #4969 but for globals.
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 07ae01160..4a4cab13f 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -1540,11 +1540,6 @@ public:
// we store data here after being read from binary, before we know their names
std::vector<std::unique_ptr<DataSegment>> dataSegments;
- // we store globals here before wasm.addGlobal after we know their names
- std::vector<std::unique_ptr<Global>> globals;
- // we store global imports here before wasm.addGlobalImport after we know
- // their names
- std::vector<Global*> globalImports;
// at index i we have all refs to the global i
std::map<Index, std::vector<Name*>> globalRefs;