[llvm] r357265 - [llvm-objcopy] Fix case style of LayoutSegments. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 29 08:27:58 PDT 2019


Author: maskray
Date: Fri Mar 29 08:27:58 2019
New Revision: 357265

URL: http://llvm.org/viewvc/llvm-project?rev=357265&view=rev
Log:
[llvm-objcopy] Fix case style of LayoutSegments. NFC

Modified:
    llvm/trunk/tools/llvm-objcopy/ELF/Object.cpp

Modified: llvm/trunk/tools/llvm-objcopy/ELF/Object.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-objcopy/ELF/Object.cpp?rev=357265&r1=357264&r2=357265&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-objcopy/ELF/Object.cpp (original)
+++ llvm/trunk/tools/llvm-objcopy/ELF/Object.cpp Fri Mar 29 08:27:58 2019
@@ -1468,7 +1468,7 @@ static void orderSegments(std::vector<Se
 // This function finds a consistent layout for a list of segments starting from
 // an Offset. It assumes that Segments have been sorted by OrderSegments and
 // returns an Offset one past the end of the last segment.
-static uint64_t LayoutSegments(std::vector<Segment *> &Segments,
+static uint64_t layoutSegments(std::vector<Segment *> &Segments,
                                uint64_t Offset) {
   assert(std::is_sorted(std::begin(Segments), std::end(Segments),
                         compareSegmentsByOffset));
@@ -1551,7 +1551,7 @@ template <class ELFT> void ELFWriter<ELF
   // Since the ELF Header (ElfHdrSegment) must be at the start of the file,
   // we start at offset 0.
   uint64_t Offset = 0;
-  Offset = LayoutSegments(OrderedSegments, Offset);
+  Offset = layoutSegments(OrderedSegments, Offset);
   Offset = layoutSections(Obj.sections(), Offset);
   // If we need to write the section header table out then we need to align the
   // Offset so that SHOffset is valid.




More information about the llvm-commits mailing list