Clean up #includes
authorChris Lattner <sabre@nondot.org>
Tue, 14 Jan 2003 22:33:56 +0000 (22:33 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 14 Jan 2003 22:33:56 +0000 (22:33 +0000)
Move graph.h into local directory

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

lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp
lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp
lib/Transforms/Instrumentation/ProfilePaths/GraphAuxiliary.cpp
lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp
lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp

index 6fa61d63f926099307f115e5d5bc739a0522b20e..ba4a9013a73987a0a25a9a3130044d2fab1556c0 100644 (file)
@@ -7,7 +7,7 @@
 //top block of cfg
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Transforms/Instrumentation/Graph.h"
+#include "Graph.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/iMemory.h"
@@ -16,7 +16,6 @@
 #include "llvm/iOperators.h"
 #include "llvm/iPHINode.h"
 #include "llvm/Module.h"
-#include "llvm/Instruction.h"
 #include <stdio.h>
 
 #define INSERT_LOAD_COUNT
index 2ca0f1d49f63950a0d83effc5cb647563d9d0167..c6a98712fac1b51451482414b12cf3eb937a50f9 100644 (file)
@@ -5,14 +5,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Transforms/Instrumentation/Graph.h"
+#include "Graph.h"
 #include "llvm/iTerminators.h"
-#include "llvm/BasicBlock.h"
 #include "Support/Statistic.h"
 #include <algorithm>
 
-//using std::list;
-//using std::set;
 using std::map;
 using std::vector;
 using std::cerr;
index 3a34131c88954aeafba86cb51e7c4f6df0c48e02..dad3958c8662971eca5d1ec59306357451992b2b 100644 (file)
@@ -7,12 +7,12 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
-#include "llvm/Transforms/Instrumentation/Graph.h"
 #include "llvm/Pass.h"
 #include "llvm/Module.h"
 #include "llvm/iTerminators.h"
 #include "Support/Statistic.h"
 #include <algorithm>
+#include "Graph.h"
 
 //using std::list;
 using std::map;
index 3a34131c88954aeafba86cb51e7c4f6df0c48e02..dad3958c8662971eca5d1ec59306357451992b2b 100644 (file)
@@ -7,12 +7,12 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
-#include "llvm/Transforms/Instrumentation/Graph.h"
 #include "llvm/Pass.h"
 #include "llvm/Module.h"
 #include "llvm/iTerminators.h"
 #include "Support/Statistic.h"
 #include <algorithm>
+#include "Graph.h"
 
 //using std::list;
 using std::map;
index bc815c6e23f6095dce883cb1ea4ea976a6babf6a..4c689b12eecb87e5eaa760c2406ecfcc02405015 100644 (file)
 // update can be collapsed into minimum number of edges.
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Transforms/Instrumentation/ProfilePaths.h"
 #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h"
-#include "llvm/Transforms/Instrumentation/Graph.h"
 #include "llvm/Support/CFG.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
 #include "llvm/iMemory.h"
-#include "llvm/GlobalVariable.h"
 #include "llvm/Module.h"
-#include <iostream>
+#include "Graph.h"
 #include <fstream>
 
 using std::vector;
@@ -51,13 +48,6 @@ struct ProfilePaths : public FunctionPass {
 
 static RegisterOpt<ProfilePaths> X("paths", "Profile Paths");
 
-// createProfilePathsPass - Create a new pass to add path profiling
-//
-Pass *createProfilePathsPass() {
-  return new ProfilePaths();
-}
-
-
 static Node *findBB(std::vector<Node *> &st, BasicBlock *BB){
   for(std::vector<Node *>::iterator si=st.begin(); si!=st.end(); ++si){
     if(((*si)->getElement())==BB){
index b63b6108baad2cc743102331b35bbcbf514130d4..efe0af55c0642eebfcfdd14a907bf1e8a1ff460a 100644 (file)
@@ -4,17 +4,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Transforms/Instrumentation/Graph.h"
 #include "llvm/Module.h"
-#include "llvm/BasicBlock.h"
 #include "llvm/iTerminators.h"
-#include "llvm/Support/CFG.h"
-#include "llvm/Function.h"
 #include "llvm/iOther.h"
-#include "Support/Casting.h"
-#include <iostream>
-#include <vector>
-#include <map>
+#include "llvm/Support/CFG.h"
+#include "Graph.h"
 
 using std::vector;
 using std::map;