CodeGen: Rename adjustFallThroughCount -> adjustForControlFlow
adjustFallThroughCount isn't a good name, and the documentation was even worse. This commit attempts to clarify what it's for and when to use it. llvm-svn: 199139
This commit is contained in:
@@ -928,7 +928,7 @@ void CodeGenFunction::EmitBranchOnBoolExpr(const Expr *Cond,
|
||||
eval.begin(*this);
|
||||
EmitBranchOnBoolExpr(CondBOp->getRHS(), TrueBlock, FalseBlock, TrueCount);
|
||||
eval.end(*this);
|
||||
Cnt.adjustFallThroughCount();
|
||||
Cnt.adjustForControlFlow();
|
||||
Cnt.applyAdjustmentsToRegion();
|
||||
|
||||
return;
|
||||
@@ -974,7 +974,7 @@ void CodeGenFunction::EmitBranchOnBoolExpr(const Expr *Cond,
|
||||
EmitBranchOnBoolExpr(CondBOp->getRHS(), TrueBlock, FalseBlock, RHSCount);
|
||||
|
||||
eval.end(*this);
|
||||
Cnt.adjustFallThroughCount();
|
||||
Cnt.adjustForControlFlow();
|
||||
Cnt.applyAdjustmentsToRegion();
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user