From 9a7ac162149b704a2c3bf47288c5905e7025d1df Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Fri, 7 Jan 2005 06:57:28 +0000 Subject: Add missing createXxxPass functions llvm-svn: 19319 --- llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp') 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 X("paths", "Profile Paths"); +FunctionPass *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){ -- cgit v1.2.3