[ELF] Update for LLVM api change

The `Elf_Rel_Impl::setSymbolAndType` method now has the third argument
`IsMips64EL` (like complement methods `getSymbol` and `getType`). While
we do not support linking of MIPS64 ELF object file just pass `false`
to the `setSymbolAndType`.

llvm-svn: 227045
This commit is contained in:
Simon Atanasyan 2015-01-25 13:44:02 +00:00
parent 5d19c67a68
commit e4135ae643
1 changed files with 2 additions and 2 deletions

View File

@ -1039,7 +1039,7 @@ private:
uint32_t index =
_symbolTable ? _symbolTable->getSymbolTableIndex(ref.target())
: (uint32_t)STN_UNDEF;
r.setSymbolAndType(index, ref.kindValue());
r.setSymbolAndType(index, ref.kindValue(), false);
r.r_offset = writer->addressOfAtom(&atom) + ref.offsetInAtom();
r.r_addend = 0;
// The addend is used only by relative relocations
@ -1057,7 +1057,7 @@ private:
uint32_t index =
_symbolTable ? _symbolTable->getSymbolTableIndex(ref.target())
: (uint32_t)STN_UNDEF;
r.setSymbolAndType(index, ref.kindValue());
r.setSymbolAndType(index, ref.kindValue(), false);
r.r_offset = writer->addressOfAtom(&atom) + ref.offsetInAtom();
DEBUG_WITH_TYPE("ELFRelocationTable",
llvm::dbgs() << ref.kindValue() << " relocation at "