Skip to content

Commit c34ae3c

Browse files
committed
A few nits
1 parent 2772323 commit c34ae3c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lld/ELF/MarkLive.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,12 +453,13 @@ void MarkLive<ELFT, TrackWhyLive>::mark() {
453453
resolveReloc(sec, rel, false);
454454

455455
for (InputSectionBase *isec : sec.dependentSections)
456-
enqueue(isec, /*offset=*/0, /*sym=*/nullptr, {&sec, "dependent section"});
456+
enqueue(isec, /*offset=*/0, /*sym=*/nullptr,
457+
{&sec, "depended on by section"});
457458

458459
// Mark the next group member.
459460
if (sec.nextInSectionGroup)
460461
enqueue(sec.nextInSectionGroup, /*offset=*/0, /*sym=*/nullptr,
461-
{&sec, "next in section group"});
462+
{&sec, "in section group with"});
462463
}
463464
}
464465

@@ -478,7 +479,7 @@ void MarkLive<ELFT, TrackWhyLive>::moveToMain() {
478479
if (auto *d = dyn_cast<Defined>(s))
479480
if ((d->type == STT_GNU_IFUNC || d->type == STT_TLS) && d->section &&
480481
d->section->isLive())
481-
markSymbol(s, {});
482+
markSymbol(s, /*reason=*/{});
482483

483484
for (InputSectionBase *sec : ctx.inputSections) {
484485
if (!sec->isLive() || !isValidCIdentifier(sec->name))

0 commit comments

Comments
 (0)