diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-07 06:57:28 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-07 06:57:28 +0000 |
commit | d9ed8c888016d15eded298c25bc8bdeffcb8d155 (patch) | |
tree | f6dcc268c102273f2c140e608d6345a16d296bc4 /lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | |
parent | afc2000a1b9bc13ee25309c8ef0277560b71ace7 (diff) |
Add missing createXxxPass functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp index aa0723bd4a..cc14c268e0 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp +++ b/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp @@ -31,6 +31,7 @@ // //===----------------------------------------------------------------------===// +#include "llvm/Transforms/Instrumentation.h" #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h" #include "llvm/Support/CFG.h" #include "llvm/Constants.h" @@ -56,6 +57,8 @@ struct ProfilePaths : public FunctionPass { static RegisterOpt<ProfilePaths> X("paths", "Profile Paths"); +FunctionPass *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){ |