[lld] r245060 - Fix the build with gcc.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 14 08:20:35 PDT 2015


Author: rafael
Date: Fri Aug 14 10:20:34 2015
New Revision: 245060

URL: http://llvm.org/viewvc/llvm-project?rev=245060&view=rev
Log:
Fix the build with gcc.

Modified:
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=245060&r1=245059&r2=245060&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Fri Aug 14 10:20:34 2015
@@ -133,7 +133,7 @@ public:
   typedef typename llvm::object::ELFFile<ELFT>::uintX_t uintX_t;
   typedef typename llvm::object::ELFFile<ELFT>::Elf_Shdr Elf_Shdr;
   Writer(SymbolTable *T)
-      : Symtab(T), SymbolTable(*T), StringTable(T->getStringBuilder()) {}
+      : Symtab(T), SymTable(*T), StringTable(T->getStringBuilder()) {}
   void run();
 
 private:
@@ -152,7 +152,7 @@ private:
   uintX_t SizeOfHeaders;
   uintX_t SectionHeaderOff;
 
-  SymbolTableSection<ELFT> SymbolTable;
+  SymbolTableSection<ELFT> SymTable;
 
   unsigned StringTableIndex;
   StringTableSection<ELFT::Is64Bits> StringTable;
@@ -323,10 +323,10 @@ template <class ELFT> void Writer<ELFT>:
   std::stable_sort(OutputSections.begin(), OutputSections.end(),
                    compSec<ELFT::Is64Bits>);
 
-  OutputSections.push_back(&SymbolTable);
+  OutputSections.push_back(&SymTable);
   OutputSections.push_back(&StringTable);
   StringTableIndex = OutputSections.size();
-  SymbolTable.setStringTableIndex(StringTableIndex);
+  SymTable.setStringTableIndex(StringTableIndex);
 
   for (OutputSectionBase<ELFT::Is64Bits> *Sec : OutputSections) {
     StringTable.add(Sec->getName());




More information about the llvm-commits mailing list