Skip to content

Commit a638890

Browse files
committed
[NFC] Apply code formatting
1 parent b43c97b commit a638890

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

llvm/include/llvm/Object/MachO.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ class BindRebaseSegInfo {
134134
BindRebaseSegInfo(const MachOObjectFile *Obj);
135135

136136
// Used to check a Mach-O Bind or Rebase entry for errors when iterating.
137-
const char* checkSegAndOffsets(int32_t SegIndex, uint64_t SegOffset,
138-
uint8_t PointerSize, uint32_t Count=1,
139-
uint64_t Skip=0);
137+
const char *checkSegAndOffsets(int32_t SegIndex, uint64_t SegOffset,
138+
uint8_t PointerSize, uint32_t Count = 1,
139+
uint64_t Skip = 0);
140140
// Used with valid SegIndex/SegOffset values from checked entries.
141141
StringRef segmentName(int32_t SegIndex);
142142
StringRef sectionName(int32_t SegIndex, uint64_t SegOffset);
@@ -576,8 +576,9 @@ class MachOObjectFile : public ObjectFile {
576576
//
577577
// This is used by MachOBindEntry::moveNext() to validate a MachOBindEntry.
578578
const char *BindEntryCheckSegAndOffsets(int32_t SegIndex, uint64_t SegOffset,
579-
uint8_t PointerSize, uint32_t Count=1,
580-
uint64_t Skip=0) const {
579+
uint8_t PointerSize,
580+
uint32_t Count = 1,
581+
uint64_t Skip = 0) const {
581582
return BindRebaseSectionTable->checkSegAndOffsets(SegIndex, SegOffset,
582583
PointerSize, Count, Skip);
583584
}
@@ -591,8 +592,8 @@ class MachOObjectFile : public ObjectFile {
591592
const char *RebaseEntryCheckSegAndOffsets(int32_t SegIndex,
592593
uint64_t SegOffset,
593594
uint8_t PointerSize,
594-
uint32_t Count=1,
595-
uint64_t Skip=0) const {
595+
uint32_t Count = 1,
596+
uint64_t Skip = 0) const {
596597
return BindRebaseSectionTable->checkSegAndOffsets(SegIndex, SegOffset,
597598
PointerSize, Count, Skip);
598599
}

llvm/lib/Object/MachOObjectFile.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4394,11 +4394,11 @@ BindRebaseSegInfo::BindRebaseSegInfo(const object::MachOObjectFile *Obj) {
43944394
// that fully contains a pointer at that location. Multiple fixups in a bind
43954395
// (such as with the BIND_OPCODE_DO_BIND_ULEB_TIMES_SKIPPING_ULEB opcode) can
43964396
// be tested via the Count and Skip parameters.
4397-
const char * BindRebaseSegInfo::checkSegAndOffsets(int32_t SegIndex,
4398-
uint64_t SegOffset,
4399-
uint8_t PointerSize,
4400-
uint32_t Count,
4401-
uint64_t Skip) {
4397+
const char *BindRebaseSegInfo::checkSegAndOffsets(int32_t SegIndex,
4398+
uint64_t SegOffset,
4399+
uint8_t PointerSize,
4400+
uint32_t Count,
4401+
uint64_t Skip) {
44024402
if (SegIndex == -1)
44034403
return "missing preceding *_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB";
44044404
if (SegIndex >= MaxSegIndex)

0 commit comments

Comments
 (0)