summaryrefslogtreecommitdiff
path: root/src/asm2wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r--src/asm2wasm.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index 0255b2847..637c4ec3b 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -38,11 +38,14 @@
#include "pass.h"
#include "passes/passes.h"
#include "shared-constants.h"
+#include "support/debug.h"
#include "wasm-builder.h"
#include "wasm-emscripten.h"
#include "wasm-module-building.h"
#include "wasm.h"
+#define DEBUG_TYPE "asm2wasm"
+
namespace wasm {
using namespace cashew;
@@ -1780,9 +1783,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) {
Function* Asm2WasmBuilder::processFunction(Ref ast) {
auto name = ast[1]->getIString();
- if (debug) {
- std::cout << "asm2wasming func: " << ast[1]->getIString().str << '\n';
- }
+ BYN_TRACE("asm2wasming func: " << ast[1]->getIString().str << '\n');
auto function = new Function;
function->name = name;