summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index 6f86a13ac..f1d51bbca 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -16,6 +16,7 @@
#include "wasm.h"
#include "ir/branch-utils.h"
+#include "wasm-printing.h"
#include "wasm-traversal.h"
namespace wasm {
@@ -93,6 +94,13 @@ Name ATTR("attr");
// Expressions
+void Expression::dump() {
+ WasmPrinter::printExpression(this,
+ std::cerr,
+ /*minify=*/false,
+ /*full=*/true);
+}
+
const char* getExpressionName(Expression* curr) {
switch (curr->_id) {
case Expression::Id::InvalidId: