[lld] r297282 - Convert a few uses of uintX_t to uint64_t.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 8 07:21:33 PST 2017


Author: rafael
Date: Wed Mar  8 09:21:32 2017
New Revision: 297282

URL: http://llvm.org/viewvc/llvm-project?rev=297282&view=rev
Log:
Convert a few uses of uintX_t to uint64_t.

Modified:
    lld/trunk/ELF/SymbolTable.cpp
    lld/trunk/ELF/SymbolTable.h
    lld/trunk/ELF/Symbols.cpp
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=297282&r1=297281&r2=297282&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Wed Mar  8 09:21:32 2017
@@ -379,7 +379,7 @@ static void reportDuplicate(SymbolBody *
 template <typename ELFT>
 Symbol *
 SymbolTable<ELFT>::addRegular(StringRef Name, uint8_t StOther, uint8_t Type,
-                              uintX_t Value, uintX_t Size, uint8_t Binding,
+                              uint64_t Value, uint64_t Size, uint8_t Binding,
                               InputSectionBase *Section, InputFile *File) {
   Symbol *S;
   bool WasInserted;
@@ -398,7 +398,7 @@ SymbolTable<ELFT>::addRegular(StringRef
 template <typename ELFT>
 Symbol *SymbolTable<ELFT>::addSynthetic(StringRef N,
                                         const OutputSection *Section,
-                                        uintX_t Value, uint8_t StOther) {
+                                        uint64_t Value, uint8_t StOther) {
   Symbol *S;
   bool WasInserted;
   std::tie(S, WasInserted) = insert(N, STT_NOTYPE, getVisibility(StOther),

Modified: lld/trunk/ELF/SymbolTable.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.h?rev=297282&r1=297281&r2=297282&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.h (original)
+++ lld/trunk/ELF/SymbolTable.h Wed Mar  8 09:21:32 2017
@@ -35,7 +35,6 @@ struct Symbol;
 // is one add* function per symbol type.
 template <class ELFT> class SymbolTable {
   typedef typename ELFT::Sym Elf_Sym;
-  typedef typename ELFT::uint uintX_t;
 
 public:
   void addFile(InputFile *File);
@@ -58,11 +57,11 @@ public:
                        InputFile *File);
 
   Symbol *addRegular(StringRef Name, uint8_t StOther, uint8_t Type,
-                     uintX_t Value, uintX_t Size, uint8_t Binding,
+                     uint64_t Value, uint64_t Size, uint8_t Binding,
                      InputSectionBase *Section, InputFile *File);
 
-  Symbol *addSynthetic(StringRef N, const OutputSection *Section, uintX_t Value,
-                       uint8_t StOther);
+  Symbol *addSynthetic(StringRef N, const OutputSection *Section,
+                       uint64_t Value, uint8_t StOther);
 
   void addShared(SharedFile<ELFT> *F, StringRef Name, const Elf_Sym &Sym,
                  const typename ELFT::Verdef *Verdef);

Modified: lld/trunk/ELF/Symbols.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.cpp?rev=297282&r1=297281&r2=297282&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.cpp (original)
+++ lld/trunk/ELF/Symbols.cpp Wed Mar  8 09:21:32 2017
@@ -69,7 +69,7 @@ static typename ELFT::uint getSymVA(cons
     if (!IS)
       return D.Value;
 
-    uintX_t Offset = D.Value;
+    uint64_t Offset = D.Value;
 
     // An object in an SHF_MERGE section might be referenced via a
     // section symbol (as a hack for reducing the number of local

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=297282&r1=297281&r2=297282&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Mar  8 09:21:32 2017
@@ -746,7 +746,7 @@ addOptionalSynthetic(StringRef Name, Out
 
 template <class ELFT>
 static Symbol *addRegular(StringRef Name, InputSectionBase *Sec,
-                          typename ELFT::uint Value) {
+                          uint64_t Value) {
   // The linker generated symbols are added as STB_WEAK to allow user defined
   // ones to override them.
   return Symtab<ELFT>::X->addRegular(Name, STV_HIDDEN, STT_NOTYPE, Value,




More information about the llvm-commits mailing list