Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.
/ swift-llvm Public archive

Commit 7075003

Browse files
committed
Revert "WebAssembly: add logging when I get a BinaryExpr"
Don't need the logging anymore This reverts commit 8b8f31f.
1 parent 057f008 commit 7075003

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/MC/WasmObjectWriter.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,6 @@ void WasmObjectWriter::recordRelocation(MCAssembler &Asm,
480480
const auto *Inner = dyn_cast<MCSymbolRefExpr>(Expr);
481481
if (Inner && Inner->getKind() == MCSymbolRefExpr::VK_WEAKREF)
482482
llvm_unreachable("weakref used in reloc not yet implemented");
483-
if (!Inner) {
484-
fprintf(stderr, "weak check failed to get an inner:\n");
485-
Expr->dump();
486-
}
487483
}
488484

489485
// Put any constant offset in an addend. Offsets can be negative, and
@@ -589,8 +585,6 @@ static const MCSymbolWasm *ResolveSymbol(const MCSymbolWasm &Symbol) {
589585
if (Symbol.isVariable()) {
590586
const MCExpr *Expr = Symbol.getVariableValue();
591587
if (Expr->getKind() == MCExpr::Binary) {
592-
fprintf(stderr, "ResolveSymbol got binary expr\n");
593-
Expr->dump();
594588
Expr = pullSymbol(Expr);
595589
if (!Expr) {
596590
llvm_unreachable("can't find a symbol in binary expression\n");

0 commit comments

Comments
 (0)