summaryrefslogtreecommitdiff
path: root/include/wabt/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/wabt/ir.h')
-rw-r--r--include/wabt/ir.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wabt/ir.h b/include/wabt/ir.h
index 68846bc0..36372441 100644
--- a/include/wabt/ir.h
+++ b/include/wabt/ir.h
@@ -1245,6 +1245,14 @@ struct Module {
BindingHash memory_bindings;
BindingHash data_segment_bindings;
BindingHash elem_segment_bindings;
+
+ // For a subset of features, the BinaryReaderIR tracks whether they are
+ // actually used by the module. wasm2c (CWriter) uses this information to
+ // limit its output in some cases.
+ struct {
+ bool simd = false;
+ bool exceptions = false;
+ } features_used;
};
enum class ScriptModuleType {