From 1e04916d5bb065b8ee8b35560861c71a59652342 Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Wed, 2 Oct 2019 13:24:45 +0000 Subject: [PATCH] [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 --- test/tools/llvm-dwarfdump/X86/locstats.ll | 6 +++--- tools/llvm-dwarfdump/Statistics.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/tools/llvm-dwarfdump/X86/locstats.ll b/test/tools/llvm-dwarfdump/X86/locstats.ll index e88667390ea..a295ad8e402 100644 --- a/test/tools/llvm-dwarfdump/X86/locstats.ll +++ b/test/tools/llvm-dwarfdump/X86/locstats.ll @@ -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 *); diff --git a/tools/llvm-dwarfdump/Statistics.cpp b/tools/llvm-dwarfdump/Statistics.cpp index d6bf02b69d1..c29ad783a9e 100644 --- a/tools/llvm-dwarfdump/Statistics.cpp +++ b/tools/llvm-dwarfdump/Statistics.cpp @@ -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: " -- 2.11.4.GIT