Remove dead code. Fixes a GCC warning.

llvm-svn: 111271
This commit is contained in:
Benjamin Kramer 2010-08-17 19:45:05 +00:00
parent 16dd681b0e
commit 5756afebba

View File

@ -505,10 +505,7 @@ void ELFObjectWriterImpl::RecordRelocation(const MCAssembler &Asm,
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);