summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WinCOFFObjectWriter.cpp
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2013-01-29 23:27:45 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2013-01-29 23:27:45 +0000
commit01edb9d7d1888604e1b46183a2e82c1c7142d379 (patch)
tree1a72cf0542b221865bbc73f2e1f829d6ac24161b /llvm/lib/MC/WinCOFFObjectWriter.cpp
parent69b5647369dbe2ebae1072f46751d648e53b8866 (diff)
downloadbcm5719-llvm-01edb9d7d1888604e1b46183a2e82c1c7142d379.tar.gz
bcm5719-llvm-01edb9d7d1888604e1b46183a2e82c1c7142d379.zip
Remove unused variable (unused since r173839)
llvm-svn: 173847
Diffstat (limited to 'llvm/lib/MC/WinCOFFObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WinCOFFObjectWriter.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/MC/WinCOFFObjectWriter.cpp b/llvm/lib/MC/WinCOFFObjectWriter.cpp
index fc7aa942e6e..6dffed73dfb 100644
--- a/llvm/lib/MC/WinCOFFObjectWriter.cpp
+++ b/llvm/lib/MC/WinCOFFObjectWriter.cpp
@@ -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.")
OpenPOWER on IntegriCloud