[lld] r253351 - [ELF2] getPLTRefReloc() -> getPltRefReloc().

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 17 09:47:53 PST 2015


Author: ikudrin
Date: Tue Nov 17 11:47:53 2015
New Revision: 253351

URL: http://llvm.org/viewvc/llvm-project?rev=253351&view=rev
Log:
[ELF2] getPLTRefReloc() -> getPltRefReloc().

Modified:
    lld/trunk/ELF/InputSection.cpp
    lld/trunk/ELF/Target.cpp
    lld/trunk/ELF/Target.h

Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=253351&r1=253350&r2=253351&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Tue Nov 17 11:47:53 2015
@@ -137,7 +137,7 @@ void InputSectionBase<ELFT>::relocate(
     uintX_t SymVA = getSymVA<ELFT>(Body);
     if (Target->relocNeedsPlt(Type, Body)) {
       SymVA = Out<ELFT>::Plt->getEntryAddr(Body);
-      Type = Target->getPLTRefReloc(Type);
+      Type = Target->getPltRefReloc(Type);
     } else if (Target->relocNeedsGot(Type, Body)) {
       SymVA = Out<ELFT>::Got->getEntryAddr(Body);
       Type = Body.isTLS() ? Target->getTlsGotReloc() : Target->getGotRefReloc();

Modified: lld/trunk/ELF/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.cpp?rev=253351&r1=253350&r2=253351&view=diff
==============================================================================
--- lld/trunk/ELF/Target.cpp (original)
+++ lld/trunk/ELF/Target.cpp Tue Nov 17 11:47:53 2015
@@ -61,7 +61,7 @@ public:
 class X86_64TargetInfo final : public TargetInfo {
 public:
   X86_64TargetInfo();
-  unsigned getPLTRefReloc(unsigned Type) const override;
+  unsigned getPltRefReloc(unsigned Type) const override;
   void writeGotPltHeaderEntries(uint8_t *Buf) const override;
   void writeGotPltEntry(uint8_t *Buf, uint64_t Plt) const override;
   void writePltZeroEntry(uint8_t *Buf, uint64_t GotEntryAddr,
@@ -152,7 +152,7 @@ bool TargetInfo::relocNeedsCopy(uint32_t
   return false;
 }
 
-unsigned TargetInfo::getPLTRefReloc(unsigned Type) const { return PCRelReloc; }
+unsigned TargetInfo::getPltRefReloc(unsigned Type) const { return PCRelReloc; }
 
 bool TargetInfo::relocPointsToGot(uint32_t Type) const { return false; }
 
@@ -279,7 +279,7 @@ bool X86_64TargetInfo::relocNeedsGot(uin
          relocNeedsPlt(Type, S);
 }
 
-unsigned X86_64TargetInfo::getPLTRefReloc(unsigned Type) const {
+unsigned X86_64TargetInfo::getPltRefReloc(unsigned Type) const {
   if (Type == R_X86_64_PLT32)
     return R_X86_64_PC32;
   return Type;

Modified: lld/trunk/ELF/Target.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Target.h?rev=253351&r1=253350&r2=253351&view=diff
==============================================================================
--- lld/trunk/ELF/Target.h (original)
+++ lld/trunk/ELF/Target.h Tue Nov 17 11:47:53 2015
@@ -44,7 +44,7 @@ public:
   bool supportsLazyRelocations() const { return LazyRelocations; }
   unsigned getGotHeaderEntriesNum() const { return GotHeaderEntriesNum; }
   unsigned getGotPltHeaderEntriesNum() const { return GotPltHeaderEntriesNum; }
-  virtual unsigned getPLTRefReloc(unsigned Type) const;
+  virtual unsigned getPltRefReloc(unsigned Type) const;
   virtual void writeGotHeaderEntries(uint8_t *Buf) const;
   virtual void writeGotPltHeaderEntries(uint8_t *Buf) const;
   virtual void writeGotPltEntry(uint8_t *Buf, uint64_t Plt) const = 0;




More information about the llvm-commits mailing list