Skip to content

Commit c420199

Browse files
committed
format
Created using spr 1.3.6-beta.1
1 parent 75ad826 commit c420199

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lld/ELF/Writer.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,9 +1445,9 @@ static void finalizeSynthetic(Ctx &ctx, SyntheticSection *sec) {
14451445
}
14461446

14471447
static bool canInsertPadding(OutputSection *sec) {
1448-
StringRef s = sec->name;
1449-
return s == ".bss" || s == ".data" || s == ".data.rel.ro" ||
1450-
s == ".rodata" || s.starts_with(".text");
1448+
StringRef s = sec->name;
1449+
return s == ".bss" || s == ".data" || s == ".data.rel.ro" || s == ".rodata" ||
1450+
s.starts_with(".text");
14511451
}
14521452

14531453
static void shufflePadding(Ctx &ctx) {
@@ -1465,8 +1465,9 @@ static void shufflePadding(Ctx &ctx) {
14651465
curPtLoad = os->ptLoad;
14661466
}
14671467
for (InputSection *isec : isd->sections) {
1468-
if (g() < (1<<28))
1469-
tmp.push_back(make<ShufflePaddingSection>(ctx, isec->addralign, os));
1468+
if (g() < (1 << 28))
1469+
tmp.push_back(
1470+
make<ShufflePaddingSection>(ctx, isec->addralign, os));
14701471
tmp.push_back(isec);
14711472
}
14721473
isd->sections = std::move(tmp);

0 commit comments

Comments
 (0)