[ELF] Update for LLVM api change
authorSimon Atanasyan <simon@atanasyan.com>
Sun, 25 Jan 2015 13:44:02 +0000 (13:44 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Sun, 25 Jan 2015 13:44:02 +0000 (13:44 +0000)
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

lld/lib/ReaderWriter/ELF/SectionChunks.h

index 50c9f3a..785c942 100644 (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 "