[llvm] r173847 - Remove unused variable (unused since r173839)
Dmitri Gribenko
gribozavr at gmail.com
Tue Jan 29 15:27:45 PST 2013
Author: gribozavr
Date: Tue Jan 29 17:27:45 2013
New Revision: 173847
URL: http://llvm.org/viewvc/llvm-project?rev=173847&view=rev
Log:
Remove unused variable (unused since r173839)
Modified:
llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp?rev=173847&r1=173846&r2=173847&view=diff
==============================================================================
--- llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/WinCOFFObjectWriter.cpp Tue Jan 29 17:27:45 2013
@@ -423,14 +423,11 @@ void WinCOFFObjectWriter::DefineSymbol(M
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.")
More information about the llvm-commits
mailing list