From 4086f0cda4ef55d0a5efa687c77b4ebf021a0644 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 29 Mar 2019 15:27:58 +0000 Subject: [PATCH] [llvm-objcopy] Fix case style of LayoutSegments. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357265 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-objcopy/ELF/Object.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/llvm-objcopy/ELF/Object.cpp b/tools/llvm-objcopy/ELF/Object.cpp index 43c0564c986..d6ac4583953 100644 --- a/tools/llvm-objcopy/ELF/Object.cpp +++ b/tools/llvm-objcopy/ELF/Object.cpp @@ -1468,7 +1468,7 @@ static void orderSegments(std::vector &Segments) { // 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 &Segments, +static uint64_t layoutSegments(std::vector &Segments, uint64_t Offset) { assert(std::is_sorted(std::begin(Segments), std::end(Segments), compareSegmentsByOffset)); @@ -1551,7 +1551,7 @@ template void ELFWriter::assignOffsets() { // 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. -- 2.50.1