Skip to content

Commit 0b18c2d

Browse files
run 'git clang format'
1 parent a55b23b commit 0b18c2d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

llvm/include/llvm/ProfileData/SampleProf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ struct LineLocation {
309309
}
310310

311311
uint64_t getHashCode() const {
312-
return ((uint64_t) Discriminator << 32) | LineOffset;
312+
return ((uint64_t)Discriminator << 32) | LineOffset;
313313
}
314314

315315
uint32_t LineOffset;

llvm/lib/ProfileData/SampleProf.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void FunctionSamples::print(raw_ostream &OS, unsigned Indent) const {
229229
if (const TypeCountMap *TypeCountMap =
230230
this->findCallsiteTypeSamplesAt(Loc)) {
231231
OS.indent(Indent + 2);
232-
printTypeCountMap(OS, Loc, *TypeCountMap);
232+
printTypeCountMap(OS, Loc, *TypeCountMap);
233233
}
234234
}
235235
OS.indent(Indent);
@@ -241,16 +241,15 @@ void FunctionSamples::print(raw_ostream &OS, unsigned Indent) const {
241241
OS.indent(Indent);
242242
if (!CallsiteSamples.empty()) {
243243
OS << "Samples collected in inlined callsites {\n";
244-
SampleSorter<LineLocation, FunctionSamplesMap> SortedCallsiteSamples(
244+
SampleSorter<LineLocation, FunctionSamplesMap> SortedCallsiteSamples(
245245
CallsiteSamples);
246246
for (const auto *Element : SortedCallsiteSamples.get()) {
247247
// Element is a pointer to a pair of LineLocation and FunctionSamplesMap.
248248
const auto &[Loc, FunctionSampleMap] = *Element;
249249
for (const FunctionSamples &FuncSample :
250250
llvm::make_second_range(FunctionSampleMap)) {
251251
OS.indent(Indent + 2);
252-
OS << Loc << ": inlined callee: " << FuncSample.getFunction()
253-
<< ": ";
252+
OS << Loc << ": inlined callee: " << FuncSample.getFunction() << ": ";
254253
FuncSample.print(OS, Indent + 4);
255254
}
256255
auto TypeSamplesIter = VirtualCallsiteTypeCounts.find(Loc);

llvm/lib/ProfileData/SampleProfWriter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,10 +619,11 @@ std::error_code SampleProfileWriterText::writeSample(const FunctionSamples &S) {
619619
SampleSorter<LineLocation, FunctionSamplesMap> SortedCallsiteSamples(
620620
S.getCallsiteSamples());
621621
Indent += 1;
622-
for (const auto* Element : SortedCallsiteSamples.get()) {
622+
for (const auto *Element : SortedCallsiteSamples.get()) {
623623
// Element is a pointer to a pair of LineLocation and FunctionSamplesMap.
624624
const auto &[Loc, FunctionSamplesMap] = *Element;
625-
for (const FunctionSamples &CalleeSamples : make_second_range(FunctionSamplesMap)) {
625+
for (const FunctionSamples &CalleeSamples :
626+
make_second_range(FunctionSamplesMap)) {
626627
OS.indent(Indent);
627628
Loc.print(OS);
628629
OS << ": ";

0 commit comments

Comments
 (0)