Correct comments
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 5 Sep 2003 19:43:19 +0000 (19:43 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 5 Sep 2003 19:43:19 +0000 (19:43 +0000)
Don't include InstLoops.h
Don't export factory functions for these passes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8373 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Instrumentation/ProfilePaths/CombineBranch.cpp
lib/Transforms/Instrumentation/ProfilePaths/InstLoops.cpp

index f92de7000f8fab68b9504a168107ce2d51798fc3..f6f3016acd5146b7de28b32f0b6eb75e04a844df 100644 (file)
@@ -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 @@ namespace{
   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,
index 1c0ec3b9ae431bbf0b22ee4499393084502e2e0b..6802c4fd96c3c62344c149084d91b242734d8e74 100644 (file)
@@ -4,7 +4,6 @@
 // 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"
@@ -49,13 +48,6 @@ namespace{
   RegisterOpt<InstLoops> X("instloops", "Instrument backedges for profiling");
 }
 
-// createInstLoopsPass - Create a new pass to add path profiling
-//
-Pass *createInstLoopsPass() {
-  return new InstLoops();
-}
-
-
 //helper function to get back edges: it is called by 
 //the "getBackEdges" function below
 void InstLoops::getBackEdgesVisit(BasicBlock *u,