[llvm-commits] CVS: llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
Jeff Cohen
jeffc at jolt-lang.org
Thu Jan 6 22:57:39 PST 2005
Changes in directory llvm/lib/Transforms/Instrumentation/ProfilePaths:
ProfilePaths.cpp updated: 1.41 -> 1.42
---
Log message:
Add missing createXxxPass functions
---
Diffs of the changes: (+3 -0)
Index: llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp
diff -u llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp:1.41 llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp:1.42
--- llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp:1.41 Wed Dec 8 10:05:02 2004
+++ llvm/lib/Transforms/Instrumentation/ProfilePaths/ProfilePaths.cpp Fri Jan 7 00:57:28 2005
@@ -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 @@
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){
More information about the llvm-commits
mailing list