[ELF] - Rename checkSectionOverlap() to checkSections(). NFC.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 4 Apr 2018 09:24:31 +0000 (09:24 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 4 Apr 2018 09:24:31 +0000 (09:24 +0000)
Renaming was requested in post commit review for D43820.

llvm-svn: 329159

lld/ELF/Writer.cpp

index 68dda6f..2e22422 100644 (file)
@@ -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>::run() {
   }
 
   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, std::vector<SectionOffset> &Sections) {
 // 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) ||