diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-04-26 20:06:40 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-04-26 20:06:40 -0700 |
commit | 206338a6c4e3f9739abd7a2ad082d1770b3a628f (patch) | |
tree | 817992a1e811af71087a228b20f3c35df9485b96 /src/wasm-builder.h | |
parent | dd778824cfc60c4478bbe7690769f444dad92803 (diff) | |
parent | d9096704dfa84aea94bb6ac2ffa02d88fa546bfa (diff) | |
download | binaryen-206338a6c4e3f9739abd7a2ad082d1770b3a628f.tar.gz binaryen-206338a6c4e3f9739abd7a2ad082d1770b3a628f.tar.bz2 binaryen-206338a6c4e3f9739abd7a2ad082d1770b3a628f.zip |
Prep for arena vectors
Arena vectors
Diffstat (limited to 'src/wasm-builder.h')
-rw-r--r-- | src/wasm-builder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-builder.h b/src/wasm-builder.h index 6e342771b..e25dafc60 100644 --- a/src/wasm-builder.h +++ b/src/wasm-builder.h @@ -91,7 +91,7 @@ public: call->fullType = type; call->type = type->result; call->target = target; - call->operands = args; + call->operands.set(args); return call; } // FunctionType @@ -162,11 +162,11 @@ public: ret->value = value; return ret; } - Host* makeHost(HostOp op, Name nameOperand, ExpressionList&& operands) { + Host* makeHost(HostOp op, Name nameOperand, std::vector<Expression*>&& operands) { auto* ret = allocator.alloc<Host>(); ret->op = op; ret->nameOperand = nameOperand; - ret->operands = operands; + ret->operands.set(operands); return ret; } // Unreachable |