summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-01-07 06:57:28 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-01-07 06:57:28 +0000
commit9a7ac162149b704a2c3bf47288c5905e7025d1df (patch)
tree5278b50ad241616087a644eb5c12bc71130fc611 /llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
parentd97ad08ef81cd296eb125f4fef4cc4883f03c798 (diff)
downloadbcm5719-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.cpp3
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){
OpenPOWER on IntegriCloud