Expose this as a functionpass

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15369 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-07-31 10:01:58 +00:00
parent 21ab22e475
commit 1e5fdf8ba0

View File

@ -48,7 +48,9 @@ namespace {
// Publically exposed interface to pass...
const PassInfo *llvm::BreakCriticalEdgesID = X.getPassInfo();
Pass *llvm::createBreakCriticalEdgesPass() { return new BreakCriticalEdges(); }
FunctionPass *llvm::createBreakCriticalEdgesPass() {
return new BreakCriticalEdges();
}
// runOnFunction - Loop over all of the edges in the CFG, breaking critical
// edges as they are found.