Remove the canCombineSubRegIndices() target hook.
[oota-llvm.git] / lib / Analysis / BlockFrequencyInfo.cpp
index b93e9a6aa9518bd8b7127b0fe62c02bd62013906..8a660f737c9b2e9b55402f87566586bfc177a6a6 100644 (file)
@@ -49,11 +49,15 @@ bool BlockFrequencyInfo::runOnFunction(Function &F) {
   return false;
 }
 
+void BlockFrequencyInfo::print(raw_ostream &O, const Module *) const {
+  if (BFI) BFI->print(O);
+}
+
 /// getblockFreq - Return block frequency. Return 0 if we don't have the
 /// information. Please note that initial frequency is equal to 1024. It means
 /// that we should not rely on the value itself, but only on the comparison to
 /// the other block frequencies. We do this to avoid using of floating points.
 ///
-uint32_t BlockFrequencyInfo::getBlockFreq(BasicBlock *BB) {
+BlockFrequency BlockFrequencyInfo::getBlockFreq(const BasicBlock *BB) const {
   return BFI->getBlockFreq(BB);
 }