diff --git a/tools/llvm-dwarfdump/Statistics.cpp b/tools/llvm-dwarfdump/Statistics.cpp index 48e6610f765..19a971afa31 100644 --- a/tools/llvm-dwarfdump/Statistics.cpp +++ b/tools/llvm-dwarfdump/Statistics.cpp @@ -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 &FnStatMap, GlobalStats &GlobalStats, LocationStats &LocStats,