summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-01-29 16:53:27 -0800
committerAlon Zakai <alonzakai@gmail.com>2016-01-29 16:53:27 -0800
commit1ce6cc0d79fe819648c5df2033ad508a98da933d (patch)
treea4e587521c16c76f6db300246f26bf84ed65a7c9 /src
parentdd74f3a36493fec082f44bf6c4f8b954e48e0300 (diff)
downloadbinaryen-1ce6cc0d79fe819648c5df2033ad508a98da933d.tar.gz
binaryen-1ce6cc0d79fe819648c5df2033ad508a98da933d.tar.bz2
binaryen-1ce6cc0d79fe819648c5df2033ad508a98da933d.zip
print named types of functions
Diffstat (limited to 'src')
-rw-r--r--src/wasm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index ea0543b45..528e9c0b0 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -956,6 +956,9 @@ public:
std::ostream& print(std::ostream &o, unsigned indent) {
printOpening(o, "func ", true) << name;
+ if (type.is()) {
+ o << " (type " << type << ')';
+ }
if (params.size() > 0) {
for (auto& param : params) {
o << ' ';