From 94e148c8304f5a2e6822b09aa44080e74124c40a Mon Sep 17 00:00:00 2001 From: George Rimar Date: Wed, 4 Apr 2018 09:24:31 +0000 Subject: [PATCH] [ELF] - Rename checkSectionOverlap() to checkSections(). NFC. Renaming was requested in post commit review for D43820. llvm-svn: 329159 --- lld/ELF/Writer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp index 68dda6f06cf3..2e22422e9c7e 100644 --- a/lld/ELF/Writer.cpp +++ b/lld/ELF/Writer.cpp @@ -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 void Writer::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 &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 void Writer::checkSectionOverlap() { +template void Writer::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) ||