Skip to content

Commit

Permalink
Remove unused variable (unused since r173839)
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173847 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gribozavr committed Jan 29, 2013
1 parent d8acb28 commit 76122f9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/MC/WinCOFFObjectWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,14 +423,11 @@ void WinCOFFObjectWriter::DefineSymbol(MCSymbol const &Symbol,

if (Symbol.isVariable()) {
coff_symbol->Data.StorageClass = COFF::IMAGE_SYM_CLASS_WEAK_EXTERNAL;
const MCExpr *Value = Symbol.getVariableValue();

// FIXME: This assert message isn't very good.
assert(Value->getKind() == MCExpr::SymbolRef &&
assert(Symbol.getVariableValue()->getKind() == MCExpr::SymbolRef &&
"Value must be a SymbolRef!");

const MCSymbolRefExpr *SymbolRef =
static_cast<const MCSymbolRefExpr *>(Value);
coff_symbol->Other = GetOrCreateCOFFSymbol(&Symbol);
} else {
std::string WeakName = std::string(".weak.")
Expand Down

0 comments on commit 76122f9

Please sign in to comment.