From b117fb57a6af2015625436e812851b543dd6d1b0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 14 Jan 2003 22:33:56 +0000 Subject: 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 --- lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp | 3 +-- lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp | 5 +---- .../Instrumentation/ProfilePaths/GraphAuxiliary.cpp | 2 +- .../Instrumentation/ProfilePaths/GraphAuxillary.cpp | 2 +- lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | 12 +----------- lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp | 10 ++-------- 6 files changed, 7 insertions(+), 27 deletions(-) (limited to 'lib/Transforms/Instrumentation') diff --git a/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp b/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp index 6fa61d6..ba4a901 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/EdgeCode.cpp @@ -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 #define INSERT_LOAD_COUNT diff --git a/lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp b/lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp index 2ca0f1d..c6a9871 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/Graph.cpp @@ -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 -//using std::list; -//using std::set; using std::map; using std::vector; using std::cerr; diff --git a/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxiliary.cpp b/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxiliary.cpp index 3a34131..dad3958 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxiliary.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxiliary.cpp @@ -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 +#include "Graph.h" //using std::list; using std::map; diff --git a/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp b/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp index 3a34131..dad3958 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/GraphAuxillary.cpp @@ -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 +#include "Graph.h" //using std::list; using std::map; diff --git a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp index bc815c6..4c689b1 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 +#include "Graph.h" #include using std::vector; @@ -51,13 +48,6 @@ struct ProfilePaths : public FunctionPass { static RegisterOpt X("paths", "Profile Paths"); -// createProfilePathsPass - Create a new pass to add path profiling -// -Pass *createProfilePathsPass() { - return new ProfilePaths(); -} - - static Node *findBB(std::vector &st, BasicBlock *BB){ for(std::vector::iterator si=st.begin(); si!=st.end(); ++si){ if(((*si)->getElement())==BB){ diff --git a/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp b/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp index b63b610..efe0af5 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/RetracePath.cpp @@ -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 -#include -#include +#include "llvm/Support/CFG.h" +#include "Graph.h" using std::vector; using std::map; -- cgit v1.1