Skip to content

Commit 644fce9

Browse files
committed
Formatting
1 parent 0df504e commit 644fce9

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

llvm/tools/llvm-profgen/PerfReader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,9 +1332,9 @@ void PerfScriptReader::warnInvalidRange() {
13321332
emitWarningSummary(
13331333
UnmatchedRange, TotalRangeNum,
13341334
"of samples are from ranges that do not belong to any functions.");
1335-
emitWarningSummary(
1336-
RecoveredRange, TotalRangeNum,
1337-
"of samples are from ranges that belong to functions recovered from symbol table.");
1335+
emitWarningSummary(RecoveredRange, TotalRangeNum,
1336+
"of samples are from ranges that belong to functions "
1337+
"recovered from symbol table.");
13381338
emitWarningSummary(
13391339
RangeCrossFunc, TotalRangeNum,
13401340
"of samples are from ranges that do cross function boundaries.");

llvm/tools/llvm-profgen/ProfiledBinary.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -834,14 +834,12 @@ void ProfiledBinary::populateSymbolsFromBinary(const ObjectFile *Obj) {
834834
// Load binary functions from symbol table when Debug info is incomplete.
835835
// Strip the internal suffixes which are not reflected in the DWARF info.
836836
const SmallVector<StringRef, 6> Suffixes(
837-
{
838-
// Internal suffixes from CoroSplit pass
839-
".cleanup", ".destroy", ".resume",
840-
// Internal suffixes from Bolt
841-
".cold", ".warm",
842-
// Compiler internal
843-
".llvm."
844-
});
837+
{// Internal suffixes from CoroSplit pass
838+
".cleanup", ".destroy", ".resume",
839+
// Internal suffixes from Bolt
840+
".cold", ".warm",
841+
// Compiler internal
842+
".llvm."});
845843
StringRef FileName = Obj->getFileName();
846844
for (const SymbolRef &Symbol : Obj->symbols()) {
847845
const SymbolRef::Type Type = unwrapOrError(Symbol.getType(), FileName);
@@ -871,8 +869,10 @@ void ProfiledBinary::populateSymbolsFromBinary(const ObjectFile *Obj) {
871869
if (Ret.second && Range->getFuncName() != SymName && ShowDetailedWarning)
872870
WithColor::warning()
873871
<< "Conflicting symbol " << Name << " already exists in DWARF as "
874-
<< Range->getFuncName() << " at address " << format("%8" PRIx64, StartAddr)
875-
<< ". The DWARF indicates a range from " << format("%8" PRIx64, Range->StartAddress) << " to "
872+
<< Range->getFuncName() << " at address "
873+
<< format("%8" PRIx64, StartAddr)
874+
<< ". The DWARF indicates a range from "
875+
<< format("%8" PRIx64, Range->StartAddress) << " to "
876876
<< format("%8" PRIx64, Range->EndAddress) << "\n";
877877
} else {
878878
// Store/Update Function Range from SymTab

0 commit comments

Comments
 (0)