Remove dead code. Fixes a GCC warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111271 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2010-08-17 19:45:05 +00:00
parent 462aaeb178
commit 81cfb8529b

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);