[lld] r287742 - Remove a forwarding constructor that is used only once.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 22:31:23 PST 2016


Author: ruiu
Date: Wed Nov 23 00:31:23 2016
New Revision: 287742

URL: http://llvm.org/viewvc/llvm-project?rev=287742&view=rev
Log:
Remove a forwarding constructor that is used only once.

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

Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=287742&r1=287741&r2=287742&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Wed Nov 23 00:31:23 2016
@@ -440,7 +440,7 @@ Symbol *SymbolTable<ELFT>::addBitcode(St
       insert(Name, Type, StOther & 3, CanOmitFromDynSym, F);
   int Cmp = compareDefinedNonCommon(S, WasInserted, Binding);
   if (Cmp > 0)
-    replaceBody<DefinedRegular<ELFT>>(S, Name, StOther, Type, F);
+    replaceBody<DefinedRegular<ELFT>>(S, Name, StOther, Type, 0, 0, nullptr, F);
   else if (Cmp == 0)
     reportDuplicate(S->body(), F);
   return S;

Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=287742&r1=287741&r2=287742&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Wed Nov 23 00:31:23 2016
@@ -183,9 +183,6 @@ public:
     this->File = File;
   }
 
-  DefinedRegular(StringRef Name, uint8_t StOther, uint8_t Type, BitcodeFile *F)
-      : DefinedRegular(Name, StOther, Type, 0, 0, NullInputSection, F) {}
-
   DefinedRegular(const char *Name, const Elf_Sym &Sym,
                  InputSectionBase<ELFT> *Section)
       : Defined(SymbolBody::DefinedRegularKind, Name, Sym.st_other,




More information about the llvm-commits mailing list