[lld] r252737 - Remove const from a few places. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 11 07:29:51 PST 2015


Author: rafael
Date: Wed Nov 11 09:29:50 2015
New Revision: 252737

URL: http://llvm.org/viewvc/llvm-project?rev=252737&view=rev
Log:
Remove const from a few places. NFC.

This just reduces the noise from an upcoming patch.

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

Modified: lld/trunk/ELF/OutputSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.h?rev=252737&r1=252736&r2=252737&view=diff
==============================================================================
--- lld/trunk/ELF/OutputSections.h (original)
+++ lld/trunk/ELF/OutputSections.h Wed Nov 11 09:29:50 2015
@@ -158,7 +158,7 @@ private:
 
 template <class ELFT> struct DynamicReloc {
   typedef typename llvm::object::ELFFile<ELFT>::Elf_Rel Elf_Rel;
-  const InputSection<ELFT> &C;
+  InputSection<ELFT> &C;
   const Elf_Rel &RI;
 };
 

Modified: lld/trunk/ELF/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Writer.cpp?rev=252737&r1=252736&r2=252737&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Nov 11 09:29:50 2015
@@ -42,9 +42,9 @@ private:
   void copyLocalSymbols();
   void createSections();
   template <bool isRela>
-  void scanRelocs(const InputSection<ELFT> &C,
+  void scanRelocs(InputSection<ELFT> &C,
                   iterator_range<const Elf_Rel_Impl<ELFT, isRela> *> Rels);
-  void scanRelocs(const InputSection<ELFT> &C);
+  void scanRelocs(InputSection<ELFT> &C);
   void assignAddresses();
   void openFile(StringRef OutputPath);
   void writeHeader();
@@ -181,7 +181,7 @@ template <bool Is64Bits> struct DenseMap
 template <class ELFT>
 template <bool isRela>
 void Writer<ELFT>::scanRelocs(
-    const InputSection<ELFT> &C,
+    InputSection<ELFT> &C,
     iterator_range<const Elf_Rel_Impl<ELFT, isRela> *> Rels) {
   typedef Elf_Rel_Impl<ELFT, isRela> RelType;
   const ObjectFile<ELFT> &File = *C.getFile();
@@ -254,8 +254,7 @@ void Writer<ELFT>::scanRelocs(
   }
 }
 
-template <class ELFT>
-void Writer<ELFT>::scanRelocs(const InputSection<ELFT> &C) {
+template <class ELFT> void Writer<ELFT>::scanRelocs(InputSection<ELFT> &C) {
   ObjectFile<ELFT> *File = C.getFile();
   ELFFile<ELFT> &EObj = File->getObj();
 




More information about the llvm-commits mailing list