diff options
author | Easwaran Raman <eraman@google.com> | 2016-05-19 21:53:28 +0000 |
---|---|---|
committer | Easwaran Raman <eraman@google.com> | 2016-05-19 21:53:28 +0000 |
commit | 30c760d8010f68b5bfaf005883c380d60ecaf33a (patch) | |
tree | 7ba34e6cb43db9d577a2d04b18cbf648903be9c8 /tools/llvm-profdata | |
parent | e40864cee2059cf804fc49bdc7c9b46d9f55cad5 (diff) |
Remove specializations of ProfileSummary
This removes the subclasses of ProfileSummary, moves the members of the derived classes to the base class.
Differential Revision: http://reviews.llvm.org/D20390
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270143 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-profdata')
-rw-r--r-- | tools/llvm-profdata/llvm-profdata.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/llvm-profdata/llvm-profdata.cpp b/tools/llvm-profdata/llvm-profdata.cpp index 1b042be8a3f..b2e60aa43bc 100644 --- a/tools/llvm-profdata/llvm-profdata.cpp +++ b/tools/llvm-profdata/llvm-profdata.cpp @@ -353,17 +353,16 @@ static int showInstrProfile(std::string Filename, bool ShowCounts, if (ShowCounts && TextFormat) return 0; - std::unique_ptr<InstrProfSummary> PS(Builder.getSummary()); + std::unique_ptr<ProfileSummary> PS(Builder.getSummary()); if (ShowAllFunctions || !ShowFunction.empty()) OS << "Functions shown: " << ShownFunctions << "\n"; OS << "Total functions: " << PS->getNumFunctions() << "\n"; OS << "Maximum function count: " << PS->getMaxFunctionCount() << "\n"; - OS << "Maximum internal block count: " << PS->getMaxInternalBlockCount() - << "\n"; + OS << "Maximum internal block count: " << PS->getMaxInternalCount() << "\n"; if (ShowDetailedSummary) { OS << "Detailed summary:\n"; - OS << "Total number of blocks: " << PS->getNumBlocks() << "\n"; + OS << "Total number of blocks: " << PS->getNumCounts() << "\n"; OS << "Total count: " << PS->getTotalCount() << "\n"; for (auto Entry : PS->getDetailedSummary()) { OS << Entry.NumCounts << " blocks with count >= " << Entry.MinCount |