Make isSlowPath() a public member of ColdBlockInfo.

Swift SVN r24108
This commit is contained in:
Erik Eckstein
2014-12-23 09:11:57 +00:00
parent 6d9a7a1045
commit cf0030b587
2 changed files with 3 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ static BranchHint getBranchHint(SILValue Cond) {
/// \return true if the CFG edge FromBB->ToBB is directly gated by a _slowPath
/// branch hint.
static bool isSlowPath(const SILBasicBlock *FromBB, const SILBasicBlock *ToBB) {
bool ColdBlockInfo::isSlowPath(const SILBasicBlock *FromBB, const SILBasicBlock *ToBB) {
auto *CBI = dyn_cast<CondBranchInst>(FromBB->getTerminator());
if (!CBI)
return false;