summaryrefslogtreecommitdiff
path: root/src/ir/struct-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/struct-utils.h')
-rw-r--r--src/ir/struct-utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ir/struct-utils.h b/src/ir/struct-utils.h
index 9f880985f..dc87ed574 100644
--- a/src/ir/struct-utils.h
+++ b/src/ir/struct-utils.h
@@ -22,6 +22,10 @@
namespace wasm {
+// A pair of a struct type and a field index, together defining a field in a
+// particular type.
+using StructField = std::pair<HeapType, Index>;
+
namespace StructUtils {
// A vector of a template type's values. One such vector will be used per struct