summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-10-29 17:50:13 -0700
committerAlon Zakai <alonzakai@gmail.com>2015-10-29 17:50:13 -0700
commit891de7b9f3c173095b0e09d0f9069c14c6bd2bc4 (patch)
treec428085527c80bd8bd4493084c3ffa2fe5266a41 /src
parent58df6d31beaedacbd7e6d017b12cd31d088d9339 (diff)
downloadbinaryen-891de7b9f3c173095b0e09d0f9069c14c6bd2bc4.tar.gz
binaryen-891de7b9f3c173095b0e09d0f9069c14c6bd2bc4.tar.bz2
binaryen-891de7b9f3c173095b0e09d0f9069c14c6bd2bc4.zip
print call_import properly
Diffstat (limited to 'src')
-rw-r--r--src/wasm.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h
index a5210e4d6..40d9a126e 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -364,8 +364,7 @@ public:
Name target;
ExpressionList operands;
- std::ostream& print(std::ostream &o, unsigned indent) override {
- printOpening(o, "call ");
+ std::ostream& printBody(std::ostream &o, unsigned indent) {
target.print(o);
if (operands.size() > 0) {
incIndent(o, indent);
@@ -378,9 +377,18 @@ public:
}
return o;
}
+
+ std::ostream& print(std::ostream &o, unsigned indent) override {
+ printOpening(o, "call ");
+ return printBody(o, indent);
+ }
};
class CallImport : public Call {
+ std::ostream& print(std::ostream &o, unsigned indent) override {
+ printOpening(o, "call_import ");
+ return printBody(o, indent);
+ }
};
class FunctionType {