summaryrefslogtreecommitdiff
path: root/src/wasm-stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-stack.h')
-rw-r--r--src/wasm-stack.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wasm-stack.h b/src/wasm-stack.h
index 6a926eddf..13cce6d6f 100644
--- a/src/wasm-stack.h
+++ b/src/wasm-stack.h
@@ -429,8 +429,8 @@ private:
// Queues the expressions linearly in Stack IR (SIR)
class StackIRGenerator : public BinaryenIRWriter<StackIRGenerator> {
public:
- StackIRGenerator(MixedArena& allocator, Function* func)
- : BinaryenIRWriter<StackIRGenerator>(func), allocator(allocator) {}
+ StackIRGenerator(Module& module, Function* func)
+ : BinaryenIRWriter<StackIRGenerator>(func), module(module) {}
void emit(Expression* curr);
void emitScopeEnd(Expression* curr);
@@ -443,7 +443,7 @@ public:
}
void emitFunctionEnd() {}
void emitUnreachable() {
- stackIR.push_back(makeStackInst(Builder(allocator).makeUnreachable()));
+ stackIR.push_back(makeStackInst(Builder(module).makeUnreachable()));
}
void emitDebugLocation(Expression* curr) {}
@@ -455,7 +455,7 @@ private:
return makeStackInst(StackInst::Basic, origin);
}
- MixedArena& allocator;
+ Module& module;
StackIR stackIR; // filled in write()
};