forked from OSchip/llvm-project
ProfileSummary.cpp - use auto const& iterator in for-range loop to avoid copies. NFCI.
This commit is contained in:
parent
96e52c1364
commit
53f1748c13
|
@ -259,7 +259,7 @@ void ProfileSummary::printSummary(raw_ostream &OS) {
|
|||
|
||||
void ProfileSummary::printDetailedSummary(raw_ostream &OS) {
|
||||
OS << "Detailed summary:\n";
|
||||
for (auto Entry : DetailedSummary) {
|
||||
for (const auto &Entry : DetailedSummary) {
|
||||
OS << Entry.NumCounts << " blocks with count >= " << Entry.MinCount
|
||||
<< " account for "
|
||||
<< format("%0.6g", (float)Entry.Cutoff / Scale * 100)
|
||||
|
|
Loading…
Reference in New Issue