From 1ce6cc0d79fe819648c5df2033ad508a98da933d Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 29 Jan 2016 16:53:27 -0800 Subject: print named types of functions --- src/wasm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 << ' '; -- cgit v1.2.3