[NFC][llvm-dwarfdump] Avoid passing std::string by value in collectStatsForDie()

This commit is contained in:
Djordje Todorovic 2021-05-11 01:23:31 -07:00 committed by Djordje Todorovic
parent 6351993da7
commit 44642505ce
1 changed files with 3 additions and 3 deletions

View File

@ -220,9 +220,9 @@ static uint64_t calculateOverlap(DWARFAddressRange A, DWARFAddressRange B) {
}
/// Collect debug info quality metrics for one DIE.
static void collectStatsForDie(DWARFDie Die, std::string FnPrefix,
std::string VarPrefix, uint64_t BytesInScope,
uint32_t InlineDepth,
static void collectStatsForDie(DWARFDie Die, const std::string &FnPrefix,
const std::string &VarPrefix,
uint64_t BytesInScope, uint32_t InlineDepth,
StringMap<PerFunctionStats> &FnStatMap,
GlobalStats &GlobalStats,
LocationStats &LocStats,