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 | 7cefdb81c5fd6d1263c9f8b66261515329883319 (patch) | |
| tree | ba0126ef0497467af69d6826a3df76d16883ee4f /llvm/tools/llvm-profdata | |
| parent | 476c0afc014b6d1e8b7c5725495c42a30f60bb44 (diff) | |
| download | bcm5719-llvm-7cefdb81c5fd6d1263c9f8b66261515329883319.tar.gz bcm5719-llvm-7cefdb81c5fd6d1263c9f8b66261515329883319.zip | |
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
llvm-svn: 270143
Diffstat (limited to 'llvm/tools/llvm-profdata')
| -rw-r--r-- | llvm/tools/llvm-profdata/llvm-profdata.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp index 1b042be8a3f..b2e60aa43bc 100644 --- a/llvm/tools/llvm-profdata/llvm-profdata.cpp +++ b/llvm/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 |

