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(); +}