[llvm-commits] [llvm] r111271 - /llvm/trunk/lib/MC/ELFObjectWriter.cpp
Benjamin Kramer
benny.kra at googlemail.com
Tue Aug 17 12:45:05 PDT 2010
Author: d0k
Date: Tue Aug 17 14:45:05 2010
New Revision: 111271
URL: http://llvm.org/viewvc/llvm-project?rev=111271&view=rev
Log:
Remove dead code. Fixes a GCC warning.
Modified:
llvm/trunk/lib/MC/ELFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=111271&r1=111270&r2=111271&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Tue Aug 17 14:45:05 2010
@@ -505,10 +505,7 @@
Value = Target.getConstant();
- if (Target.isAbsolute()) {
- Type = Is64Bit ? ELF::R_X86_64_NONE : ELF::R_386_NONE;
- Index = 0;
- } else {
+ if (!Target.isAbsolute()) {
const MCSymbol *Symbol = &Target.getSymA()->getSymbol();
MCSymbolData &SD = Asm.getSymbolData(*Symbol);
const MCSymbolData *Base = Asm.getAtom(Layout, &SD);
More information about the llvm-commits
mailing list