summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index bc39eae7b..37c12ffc6 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -703,11 +703,13 @@ public:
// needed (which may require scanning the block)
void finalize(Type type_);
+ enum Breakability { Unknown, HasBreak, NoBreak };
+
// set the type given you know its type, and you know if there is a break to
// this block. this avoids the need to scan the contents of the block in the
// case that it might be unreachable, so it is recommended if you already know
// the type and breakability anyhow.
- void finalize(Type type_, bool hasBreak);
+ void finalize(Type type_, Breakability breakability);
};
class If : public SpecificExpression<Expression::IfId> {