aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-14 22:33:56 +0000
committerChris Lattner <sabre@nondot.org>2003-01-14 22:33:56 +0000
commitb117fb57a6af2015625436e812851b543dd6d1b0 (patch)
treebfb3d8aef47b31b8ae119d5d0a9d4c9067233d47 /lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
parent77f088b114fe61e62199b5a7dbcfb22ba0439260 (diff)
Clean up #includes
Move graph.h into local directory git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp')
-rw-r--r--lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
index bc815c6e23..4c689b12ee 100644
--- a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
+++ b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
@@ -24,16 +24,13 @@
// 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){