summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-10-29 16:56:54 -0700
committerAlon Zakai <alonzakai@gmail.com>2015-10-29 16:56:54 -0700
commit9f9e8f848dd3472e4ffa9f1ba301dd261f5e10da (patch)
tree467742062c82ae631db42302b9dc00962f9864e2 /src/wasm.h
parentc9cd6c7726df7ee0ca4cb6ecf969d98c50335046 (diff)
downloadbinaryen-9f9e8f848dd3472e4ffa9f1ba301dd261f5e10da.tar.gz
binaryen-9f9e8f848dd3472e4ffa9f1ba301dd261f5e10da.tar.bz2
binaryen-9f9e8f848dd3472e4ffa9f1ba301dd261f5e10da.zip
fix function type printing
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 87e18c7ba..8869c7e80 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -392,7 +392,7 @@ public:
std::ostream& print(std::ostream &o, unsigned indent, bool full=false) {
if (full) {
printOpening(o, "type") << ' ';
- name.print(o);
+ name.print(o) << " (func";
}
if (params.size() > 0) {
o << ' ';
@@ -409,7 +409,7 @@ public:
printBasicType(o, result) << ')';
}
if (full) {
- o << ')';
+ o << "))";;
}
return o;
}