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 | 9a7ac162149b704a2c3bf47288c5905e7025d1df (patch) | |
tree | 5278b50ad241616087a644eb5c12bc71130fc611 /llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | |
parent | d97ad08ef81cd296eb125f4fef4cc4883f03c798 (diff) | |
download | bcm5719-llvm-9a7ac162149b704a2c3bf47288c5905e7025d1df.tar.gz bcm5719-llvm-9a7ac162149b704a2c3bf47288c5905e7025d1df.zip |
Add missing createXxxPass functions
llvm-svn: 19319
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp b/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp index aa0723bd4ab..cc14c268e06 100644 --- a/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp +++ b/llvm/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){ |