[lld] r329159 - [ELF] - Rename checkSectionOverlap() to checkSections(). NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 4 02:24:31 PDT 2018


Author: grimar
Date: Wed Apr  4 02:24:31 2018
New Revision: 329159

URL: http://llvm.org/viewvc/llvm-project?rev=329159&view=rev
Log:
[ELF] - Rename checkSectionOverlap() to checkSections(). NFC.

Renaming was requested in post commit review for D43820.

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=329159&r1=329158&r2=329159&view=diff
==============================================================================
--- lld/trunk/ELF/Writer.cpp (original)
+++ lld/trunk/ELF/Writer.cpp Wed Apr  4 02:24:31 2018
@@ -62,7 +62,7 @@ private:
   void assignFileOffsets();
   void assignFileOffsetsBinary();
   void setPhdrs();
-  void checkSectionOverlap();
+  void checkSections();
   void fixSectionAlignments();
   void openFile();
   void writeTrapInstr();
@@ -458,7 +458,7 @@ template <class ELFT> void Writer<ELFT>:
   }
 
   if (Config->CheckSections)
-    checkSectionOverlap();
+    checkSections();
 
   // It does not make sense try to open the file if we have error already.
   if (errorCount())
@@ -2071,7 +2071,7 @@ static void checkOverlap(StringRef Name,
 // In this function we check that none of the output sections have overlapping
 // file offsets. For SHF_ALLOC sections we also check that the load address
 // ranges and the virtual address ranges don't overlap
-template <class ELFT> void Writer<ELFT>::checkSectionOverlap() {
+template <class ELFT> void Writer<ELFT>::checkSections() {
   // First, check that section's VAs fit in available address space for target.
   for (OutputSection *OS : OutputSections)
     if ((OS->Addr + OS->Size < OS->Addr) ||




More information about the llvm-commits mailing list