[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Oct 16 11:06:54 PDT 2004
Changes in directory llvm/include/llvm/Transforms/Utils:
UnifyFunctionExitNodes.h updated: 1.17 -> 1.18
---
Log message:
Add support for the unreachable instruction
---
Diffs of the changes: (+4 -3)
Index: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
diff -u llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.17 llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.18
--- llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.17 Tue Nov 11 16:41:31 2003
+++ llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h Sat Oct 16 13:06:43 2004
@@ -23,18 +23,19 @@
namespace llvm {
struct UnifyFunctionExitNodes : public FunctionPass {
- BasicBlock *ReturnBlock, *UnwindBlock;
+ BasicBlock *ReturnBlock, *UnwindBlock, *UnreachableBlock;
public:
UnifyFunctionExitNodes() : ReturnBlock(0), UnwindBlock(0) {}
// We can preserve non-critical-edgeness when we unify function exit nodes
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
- // getReturn|UnwindBlock - Return the new single (or nonexistant) return or
- // unwind basic blocks in the CFG.
+ // getReturn|Unwind|UnreachableBlock - Return the new single (or nonexistant)
+ // return, unwind, or unreachable basic blocks in the CFG.
//
BasicBlock *getReturnBlock() const { return ReturnBlock; }
BasicBlock *getUnwindBlock() const { return UnwindBlock; }
+ BasicBlock *getUnreachableBlock() const { return UnreachableBlock; }
virtual bool runOnFunction(Function &F);
};
More information about the llvm-commits
mailing list