[lld] r273154 - [ELF] - Forgot to address these two minors before commit r273152. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 06:22:55 PDT 2016


Author: grimar
Date: Mon Jun 20 08:22:54 2016
New Revision: 273154

URL: http://llvm.org/viewvc/llvm-project?rev=273154&view=rev
Log:
[ELF] - Forgot to address these two minors before commit r273152. NFC.

Modified:
    lld/trunk/ELF/SymbolListFile.h
    lld/trunk/ELF/Writer.cpp

Modified: lld/trunk/ELF/SymbolListFile.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolListFile.h?rev=273154&r1=273153&r2=273154&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolListFile.h (original)
+++ lld/trunk/ELF/SymbolListFile.h Mon Jun 20 08:22:54 2016
@@ -11,7 +11,6 @@
 #define LLD_ELF_SYMBOL_LIST_FILE_H
 
 #include "lld/Core/LLVM.h"
-#include "llvm/ADT/MapVector.h"
 #include "llvm/Support/MemoryBuffer.h"
 
 namespace lld {

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=273154&r1=273153&r2=273154&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Mon Jun 20 08:22:54 2016
@@ -912,8 +912,7 @@ template <class ELFT> void Writer<ELFT>:
     bool HasVerNeed = Out<ELFT>::VerNeed->getNeedNum() != 0;
     if (Out<ELFT>::VerDef || HasVerNeed)
       Add(Out<ELFT>::VerSym);
-    if (Out<ELFT>::VerDef)
-      Add(Out<ELFT>::VerDef);
+    Add(Out<ELFT>::VerDef);
     if (HasVerNeed)
       Add(Out<ELFT>::VerNeed);
 




More information about the llvm-commits mailing list