Correct comments
Don't include InstLoops.h
Don't export factory functions for these passes
llvm-svn: 8373
diff --git a/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp b/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp
index f92de70..f6f3016 100644
--- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp
+++ b/llvm/lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp
@@ -1,10 +1,9 @@
-//===-- InstLoops.cpp ---------------------------------------- ---*- C++ -*--=//
+//===-- CombineBranch.cpp ------------------------------------ ---*- C++ -*--=//
// Pass to instrument loops
//
// At every backedge, insert a counter for that backedge and a call function
//===----------------------------------------------------------------------===//
-#include "llvm/Reoptimizer/InstLoops.h"
#include "llvm/Analysis/Dominators.h"
#include "llvm/Support/CFG.h"
#include "llvm/Constants.h"
@@ -46,13 +45,6 @@
RegisterOpt<CombineBranches> X("branch-combine", "Multiple backedges going to same target are merged");
}
-// Create a new pass to merge branches
-//
-Pass *createCombineBranchesPass() {
- return new CombineBranches();
-}
-
-
//helper function to get back edges: it is called by
//the "getBackEdges" function below
void CombineBranches::getBackEdgesVisit(BasicBlock *u,