[lld] r325017 - Use RelType in a few more places. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 13 08:06:11 PST 2018


Author: rafael
Date: Tue Feb 13 08:06:11 2018
New Revision: 325017

URL: http://llvm.org/viewvc/llvm-project?rev=325017&view=rev
Log:
Use RelType in a few more places. NFC.

Modified:
    lld/trunk/ELF/SyntheticSections.cpp
    lld/trunk/ELF/SyntheticSections.h

Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=325017&r1=325016&r2=325017&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Tue Feb 13 08:06:11 2018
@@ -1202,12 +1202,12 @@ RelocationBaseSection::RelocationBaseSec
     : SyntheticSection(SHF_ALLOC, Type, Config->Wordsize, Name),
       DynamicTag(DynamicTag), SizeDynamicTag(SizeDynamicTag) {}
 
-void RelocationBaseSection::addReloc(uint32_t DynType, InputSectionBase *IS,
+void RelocationBaseSection::addReloc(RelType DynType, InputSectionBase *IS,
                                      uint64_t OffsetInSec, Symbol *Sym) {
   addReloc({DynType, IS, OffsetInSec, false, Sym, 0});
 }
 
-void RelocationBaseSection::addReloc(uint32_t DynType,
+void RelocationBaseSection::addReloc(RelType DynType,
                                      InputSectionBase *InputSec,
                                      uint64_t OffsetInSec, bool UseSymVA,
                                      Symbol *Sym, int64_t Addend, RelExpr Expr,

Modified: lld/trunk/ELF/SyntheticSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.h?rev=325017&r1=325016&r2=325017&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.h (original)
+++ lld/trunk/ELF/SyntheticSections.h Tue Feb 13 08:06:11 2018
@@ -361,9 +361,9 @@ class RelocationBaseSection : public Syn
 public:
   RelocationBaseSection(StringRef Name, uint32_t Type, int32_t DynamicTag,
                         int32_t SizeDynamicTag);
-  void addReloc(uint32_t DynType, InputSectionBase *IS, uint64_t OffsetInSec,
+  void addReloc(RelType DynType, InputSectionBase *IS, uint64_t OffsetInSec,
                 Symbol *Sym);
-  void addReloc(uint32_t DynType, InputSectionBase *InputSec,
+  void addReloc(RelType DynType, InputSectionBase *InputSec,
                 uint64_t OffsetInSec, bool UseSymVA, Symbol *Sym,
                 int64_t Addend, RelExpr Expr, RelType Type);
   void addReloc(const DynamicReloc &Reloc);




More information about the llvm-commits mailing list