From 70750031c843e6b28e8c7cd16115b085ade9f512 Mon Sep 17 00:00:00 2001 From: Zhuowei Zhang Date: Thu, 2 May 2019 11:54:29 -0700 Subject: [PATCH] Revert "WebAssembly: add logging when I get a BinaryExpr" Don't need the logging anymore This reverts commit 8b8f31fc13c02ad26ff1ef0c211753e8d339487f. --- lib/MC/WasmObjectWriter.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/MC/WasmObjectWriter.cpp b/lib/MC/WasmObjectWriter.cpp index 2949cf500e6..e8c09ff987a 100644 --- a/lib/MC/WasmObjectWriter.cpp +++ b/lib/MC/WasmObjectWriter.cpp @@ -480,10 +480,6 @@ void WasmObjectWriter::recordRelocation(MCAssembler &Asm, const auto *Inner = dyn_cast(Expr); if (Inner && Inner->getKind() == MCSymbolRefExpr::VK_WEAKREF) llvm_unreachable("weakref used in reloc not yet implemented"); - if (!Inner) { - fprintf(stderr, "weak check failed to get an inner:\n"); - Expr->dump(); - } } // Put any constant offset in an addend. Offsets can be negative, and @@ -589,8 +585,6 @@ static const MCSymbolWasm *ResolveSymbol(const MCSymbolWasm &Symbol) { if (Symbol.isVariable()) { const MCExpr *Expr = Symbol.getVariableValue(); if (Expr->getKind() == MCExpr::Binary) { - fprintf(stderr, "ResolveSymbol got binary expr\n"); - Expr->dump(); Expr = pullSymbol(Expr); if (!Expr) { llvm_unreachable("can't find a symbol in binary expression\n");