From 96c47400b8bce7b51d161432ff0cc03a9622cf3d Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 1 Aug 2016 15:35:47 -0700 Subject: debugging in print --- src/passes/Print.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 5eea38bdc..7486e07f1 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -64,6 +64,7 @@ struct PrintSExpression : public Visitor { } void printFullLine(Expression *expression) { !minify && doIndent(o, indent); + //o << "[" << printWasmType(expression->type) << "] "; // debugging tool visit(expression); o << maybeNewLine; } @@ -721,6 +722,7 @@ Pass *createFullPrinterPass() { std::ostream& WasmPrinter::printExpression(Expression* expression, std::ostream& o, bool minify) { PrintSExpression print(o); print.setMinify(minify); + //o << "[" << printWasmType(expression->type) << "] "; // debugging tool print.visit(expression); return o; } -- cgit v1.2.3