[llvm-dwarfdump] Fix dumping of wrong locstats map

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373469 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Djordje Todorovic
2019-10-02 13:24:45 +00:00
parent 5a3e9fab2e
commit a98779d25c
2 changed files with 4 additions and 4 deletions

View File

@@ -71,7 +71,7 @@
; CHECK: "vars with 80-89% of its scope covered":1
; CHECK: "vars with 90-99% of its scope covered":0
; CHECK: "vars with 100% of its scope covered":1
; CHECK: "vars (excluding the debug entry values) with 0% of its scope covered":0
; CHECK: "vars (excluding the debug entry values) with 0% of its scope covered":1
; CHECK: "vars (excluding the debug entry values) with 1-9% of its scope covered":0
; CHECK: "vars (excluding the debug entry values) with 10-19% of its scope covered":0
; CHECK: "vars (excluding the debug entry values) with 20-29% of its scope covered":0
@@ -80,9 +80,9 @@
; CHECK: "vars (excluding the debug entry values) with 50-59% of its scope covered":1
; CHECK: "vars (excluding the debug entry values) with 60-69% of its scope covered":0
; CHECK: "vars (excluding the debug entry values) with 70-79% of its scope covered":0
; CHECK: "vars (excluding the debug entry values) with 80-89% of its scope covered":0
; CHECK: "vars (excluding the debug entry values) with 80-89% of its scope covered":1
; CHECK: "vars (excluding the debug entry values) with 90-99% of its scope covered":0
; CHECK: "vars (excluding the debug entry values) with 100% of its scope covered":1}
; CHECK: "vars (excluding the debug entry values) with 100% of its scope covered":1
;
; The source code of the test case:
; extern void fn3(int *);

View File

@@ -600,7 +600,7 @@ bool collectStatsForObjectFile(ObjectFile &Obj, DWARFContext &DICtx,
printDatum(OS, "total vars procesed by location statistics", LocStats.NumVar);
printLocationStats(OS, "vars", LocStats.VarLocStats);
printLocationStats(OS, "vars (excluding the debug entry values)",
LocStats.ParamNonEntryValLocStats);
LocStats.VarNonEntryValLocStats);
OS << "}\n";
LLVM_DEBUG(
llvm::dbgs() << "Total Availability: "