summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-dwarfdump/Statistics.cpp
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2019-05-09 21:53:33 +0000
committerCaroline Tice <cmtice@google.com>2019-05-09 21:53:33 +0000
commitabf25745b339700639a5d319551ed120a52fd753 (patch)
tree98faded16a2135b07b28bc1c6a58646f627346d0 /llvm/tools/llvm-dwarfdump/Statistics.cpp
parenta612b5adb7a63b10736134cb7b8e70f1614883be (diff)
downloadbcm5719-llvm-abf25745b339700639a5d319551ed120a52fd753.tar.gz
bcm5719-llvm-abf25745b339700639a5d319551ed120a52fd753.zip
llvm-dwarfdump: Add dwo parsing to --statistics.
Add check for, and parsing of, .dwo files to Statistics.cpp; create a new getNon SkeletonUnitDie function for DWARFUnit.h Reviewers: dblaikie Differential Revision: https://review.llvm.org/D61755 llvm-svn: 360380
Diffstat (limited to 'llvm/tools/llvm-dwarfdump/Statistics.cpp')
-rw-r--r--llvm/tools/llvm-dwarfdump/Statistics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dwarfdump/Statistics.cpp b/llvm/tools/llvm-dwarfdump/Statistics.cpp
index c8cfa1e5dc0..f26369b935c 100644
--- a/llvm/tools/llvm-dwarfdump/Statistics.cpp
+++ b/llvm/tools/llvm-dwarfdump/Statistics.cpp
@@ -323,7 +323,7 @@ bool collectStatsForObjectFile(ObjectFile &Obj, DWARFContext &DICtx,
GlobalStats GlobalStats;
StringMap<PerFunctionStats> Statistics;
for (const auto &CU : static_cast<DWARFContext *>(&DICtx)->compile_units())
- if (DWARFDie CUDie = CU->getUnitDIE(false))
+ if (DWARFDie CUDie = CU->getNonSkeletonUnitDIE(false))
collectStatsRecursive(CUDie, "/", "g", 0, 0, 0, Statistics, GlobalStats);
/// The version number should be increased every time the algorithm is changed
OpenPOWER on IntegriCloud