summaryrefslogtreecommitdiffstats
path: root/llvm/tools
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-03-29 15:27:58 +0000
committerFangrui Song <maskray@google.com>2019-03-29 15:27:58 +0000
commit8da6a6cec31f287a98362cbd097394b1e2dead20 (patch)
treed20b45a993d4c001d46c26efcf8f32c1bfaea387 /llvm/tools
parentf26f56d6d3d6506fe888f9894bcc270ed7db07c5 (diff)
downloadbcm5719-llvm-8da6a6cec31f287a98362cbd097394b1e2dead20.tar.gz
bcm5719-llvm-8da6a6cec31f287a98362cbd097394b1e2dead20.zip
[llvm-objcopy] Fix case style of LayoutSegments. NFC
llvm-svn: 357265
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-objcopy/ELF/Object.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-objcopy/ELF/Object.cpp b/llvm/tools/llvm-objcopy/ELF/Object.cpp
index 43c0564c986..d6ac4583953 100644
--- a/llvm/tools/llvm-objcopy/ELF/Object.cpp
+++ b/llvm/tools/llvm-objcopy/ELF/Object.cpp
@@ -1468,7 +1468,7 @@ static void orderSegments(std::vector<Segment *> &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<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<ELFT>::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.
OpenPOWER on IntegriCloud