summaryrefslogtreecommitdiff
path: root/src/passes/RemoveUnusedModuleElements.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-04-10 16:15:29 -0700
committerGitHub <noreply@github.com>2023-04-10 16:15:29 -0700
commit160dda0aa5ecc8252c5862cd937157296d9015cb (patch)
treeff05328c0e77a6e13a7fa8d77975dcb3f3eed4c9 /src/passes/RemoveUnusedModuleElements.cpp
parentde8c2b5bbfb3410a7d526a5b0c3eb40f9db75a71 (diff)
downloadbinaryen-160dda0aa5ecc8252c5862cd937157296d9015cb.tar.gz
binaryen-160dda0aa5ecc8252c5862cd937157296d9015cb.tar.bz2
binaryen-160dda0aa5ecc8252c5862cd937157296d9015cb.zip
[Wasm GC] Fuzz struct.get and array.get (#5651)
Diffstat (limited to 'src/passes/RemoveUnusedModuleElements.cpp')
-rw-r--r--src/passes/RemoveUnusedModuleElements.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/passes/RemoveUnusedModuleElements.cpp b/src/passes/RemoveUnusedModuleElements.cpp
index 228b3afc1..6842c852e 100644
--- a/src/passes/RemoveUnusedModuleElements.cpp
+++ b/src/passes/RemoveUnusedModuleElements.cpp
@@ -41,6 +41,7 @@
#include "ir/find_all.h"
#include "ir/intrinsics.h"
#include "ir/module-utils.h"
+#include "ir/struct-utils.h"
#include "ir/subtypes.h"
#include "ir/utils.h"
#include "pass.h"
@@ -63,10 +64,6 @@ enum class ModuleElementKind {
// name of the particular element.
using ModuleElement = std::pair<ModuleElementKind, Name>;
-// A pair of a struct type and a field index, together defining a field in a
-// particular type.
-using StructField = std::pair<HeapType, Index>;
-
// Visit or walk an expression to find what things are referenced.
struct ReferenceFinder : public PostWalker<ReferenceFinder> {
// Our findings are placed in these data structures, which the user of this