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

Commit

Permalink
Revert "WebAssembly: add logging when I get a BinaryExpr"
Browse files Browse the repository at this point in the history
Don't need the logging anymore

This reverts commit 8b8f31f.
  • Loading branch information
zhuowei committed Jun 8, 2019
1 parent b85b8cd commit 8361893
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/MC/WasmObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,6 @@ void WasmObjectWriter::recordRelocation(MCAssembler &Asm,
const auto *Inner = dyn_cast<MCSymbolRefExpr>(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
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 8361893

Please sign in to comment.