[lld] r227045 - [ELF] Update for LLVM api change

Simon Atanasyan simon at atanasyan.com
Sun Jan 25 05:44:02 PST 2015


Author: atanasyan
Date: Sun Jan 25 07:44:02 2015
New Revision: 227045

URL: http://llvm.org/viewvc/llvm-project?rev=227045&view=rev
Log:
[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`.

Modified:
    lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h

Modified: lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h?rev=227045&r1=227044&r2=227045&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h (original)
+++ lld/trunk/lib/ReaderWriter/ELF/SectionChunks.h Sun Jan 25 07:44:02 2015
@@ -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 "





More information about the llvm-commits mailing list