Skip to content

Commit 0fd352d

Browse files
committed
formatting
1 parent a1f32b5 commit 0fd352d

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

llvm/include/llvm/ProfileData/SampleProf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ class FunctionSamples {
12141214
// Note the sequence of the suffixes in the knownSuffixes array matters.
12151215
// If suffix "A" is appended after the suffix "B", "A" should be in front
12161216
// of "B" in knownSuffixes.
1217-
SmallVector<StringRef> KnownSuffixes ({LLVMSuffix, PartSuffix, UniqSuffix});
1217+
SmallVector<StringRef> KnownSuffixes({LLVMSuffix, PartSuffix, UniqSuffix});
12181218
return getCanonicalFnName(FnName, KnownSuffixes, Attr);
12191219
}
12201220

llvm/tools/llvm-profgen/ProfileGenerator.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -492,13 +492,18 @@ bool ProfileGeneratorBase::collectFunctionsFromRawProfile(
492492
}
493493

494494
if (ErrStkAddr)
495-
WithColor::warning() << "Cannot find Stack Address from DWARF Info: " << ErrStkAddr << "/" << TotalStkAddr << " missing\n";
495+
WithColor::warning() << "Cannot find Stack Address from DWARF Info: "
496+
<< ErrStkAddr << "/" << TotalStkAddr << " missing\n";
496497
if (ErrFuncRange)
497-
WithColor::warning() << "Cannot find Function Range from DWARF Info: " << ErrFuncRange << "/" << TotalFuncRange << " missing\n";
498+
WithColor::warning() << "Cannot find Function Range from DWARF Info: "
499+
<< ErrFuncRange << "/" << TotalFuncRange
500+
<< " missing\n";
498501
if (ErrSrc)
499-
WithColor::warning() << "Cannot find LBR Source Addr from DWARF Info: " << ErrSrc << "/" << TotalSrc << " missing\n";
502+
WithColor::warning() << "Cannot find LBR Source Addr from DWARF Info: "
503+
<< ErrSrc << "/" << TotalSrc << " missing\n";
500504
if (ErrTgt)
501-
WithColor::warning() << "Cannot find LBR Target Addr from DWARF Info: " << ErrTgt << "/" << TotalTgt << " missing\n";
505+
WithColor::warning() << "Cannot find LBR Target Addr from DWARF Info: "
506+
<< ErrTgt << "/" << TotalTgt << " missing\n";
502507
return true;
503508
}
504509

llvm/tools/llvm-profgen/ProfiledBinary.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,7 @@ void ProfiledBinary::populateSymbolAddressList(const ObjectFile *Obj) {
822822
}
823823
}
824824

825-
void ProfiledBinary::populateSymbolsFromElf(
826-
const ObjectFile *Obj) {
825+
void ProfiledBinary::populateSymbolsFromElf(const ObjectFile *Obj) {
827826
// Load binary functions from ELF symbol table when DWARF info is incomplete
828827
StringRef FileName = Obj->getFileName();
829828
for (const ELFSymbolRef Symbol : Obj->symbols()) {
@@ -836,8 +835,9 @@ void ProfiledBinary::populateSymbolsFromElf(
836835
continue;
837836

838837
SmallVector<StringRef> Suffixes(
839-
{".destroy", ".resume", ".llvm.", ".cold", ".warm"});
840-
const StringRef SymName = FunctionSamples::getCanonicalFnName(Name, Suffixes);
838+
{".destroy", ".resume", ".llvm.", ".cold", ".warm"});
839+
const StringRef SymName =
840+
FunctionSamples::getCanonicalFnName(Name, Suffixes);
841841

842842
auto Ret = BinaryFunctions.emplace(SymName, BinaryFunction());
843843
auto &Func = Ret.first->second;

0 commit comments

Comments
 (0)