mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
ProfileSummary.cpp - use auto const& iterator in for-range loop to avoid copies. NFCI.
This commit is contained in:
parent
34f10ad200
commit
31aa31919a
@ -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
Block a user