From 5f2ddd6a0c7ebdfba32e1a0c7084eee55972d142 Mon Sep 17 00:00:00 2001 From: Yuchen Wu Date: Fri, 20 Dec 2013 22:11:11 +0000 Subject: [PATCH] BlockFrequencyInfo: Readded getEntryFreq. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197839 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/BlockFrequencyInfo.h | 2 ++ lib/Analysis/BlockFrequencyInfo.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/include/llvm/Analysis/BlockFrequencyInfo.h b/include/llvm/Analysis/BlockFrequencyInfo.h index bd44ae34e5b..e594448f478 100644 --- a/include/llvm/Analysis/BlockFrequencyInfo.h +++ b/include/llvm/Analysis/BlockFrequencyInfo.h @@ -59,6 +59,8 @@ public: // BB and print it to OS. raw_ostream &printBlockFreq(raw_ostream &OS, const BasicBlock *BB) const; + uint64_t getEntryFreq() const; + }; } diff --git a/lib/Analysis/BlockFrequencyInfo.cpp b/lib/Analysis/BlockFrequencyInfo.cpp index 2616edd78ba..0088c207455 100644 --- a/lib/Analysis/BlockFrequencyInfo.cpp +++ b/lib/Analysis/BlockFrequencyInfo.cpp @@ -170,3 +170,7 @@ BlockFrequencyInfo::printBlockFreq(raw_ostream &OS, const BasicBlock *BB) const { return BFI->printBlockFreq(OS, BB); } + +uint64_t BlockFrequencyInfo::getEntryFreq() const { + return BFI->getEntryFreq(); +}