[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
Devang Patel
dpatel at apple.com
Tue May 1 14:17:58 PDT 2007
Changes in directory llvm/include/llvm/Transforms/Utils:
UnifyFunctionExitNodes.h updated: 1.20 -> 1.21
---
Log message:
Do not use typeinfo to identify pass in pass manager.
---
Diffs of the changes: (+3 -1)
UnifyFunctionExitNodes.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
diff -u llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.20 llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.21
--- llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.20 Fri Jun 2 13:40:06 2006
+++ llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h Tue May 1 16:15:46 2007
@@ -25,7 +25,9 @@
struct UnifyFunctionExitNodes : public FunctionPass {
BasicBlock *ReturnBlock, *UnwindBlock, *UnreachableBlock;
public:
- UnifyFunctionExitNodes() : ReturnBlock(0), UnwindBlock(0) {}
+ static const int ID; // Pass identifcation, replacement for typeid
+ UnifyFunctionExitNodes() : FunctionPass((intptr_t)&ID),
+ ReturnBlock(0), UnwindBlock(0) {}
// We can preserve non-critical-edgeness when we unify function exit nodes
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
More information about the llvm-commits
mailing list