[lld] r250688 - [ELF2] In/out parameter of writeGlobalSymbols() is changed to in parameter.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 19 01:01:51 PDT 2015


Author: ikudrin
Date: Mon Oct 19 03:01:51 2015
New Revision: 250688

URL: http://llvm.org/viewvc/llvm-project?rev=250688&view=rev
Log:
[ELF2] In/out parameter of writeGlobalSymbols() is changed to in parameter.

There is no outer code which requires the changed value.

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

Modified: lld/trunk/ELF/OutputSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=250688&r1=250687&r2=250688&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.cpp (original)
+++ lld/trunk/ELF/OutputSections.cpp Mon Oct 19 03:01:51 2015
@@ -616,7 +616,7 @@ void SymbolTableSection<ELFT>::writeLoca
 }
 
 template <class ELFT>
-void SymbolTableSection<ELFT>::writeGlobalSymbols(uint8_t *&Buf) {
+void SymbolTableSection<ELFT>::writeGlobalSymbols(uint8_t *Buf) {
   // Write the internal symbol table contents to the output symbol table
   // pointed by Buf.
   uint8_t *Start = Buf;

Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=250688&r1=250687&r2=250688&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Mon Oct 19 03:01:51 2015
@@ -148,7 +148,7 @@ public:
 
 private:
   void writeLocalSymbols(uint8_t *&Buf);
-  void writeGlobalSymbols(uint8_t *&Buf);
+  void writeGlobalSymbols(uint8_t *Buf);
 
   SymbolTable<ELFT> &Table;
   StringTableSection<ELFT> &StrTabSec;




More information about the llvm-commits mailing list