Add getAnalysisUsage method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5756 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-03-31 17:29:18 +00:00
parent f1c154f5e6
commit d76370b306

View File

@ -7,8 +7,8 @@
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_XFORMS_UNIFY_FUNCTION_EXIT_NODES_H
#define LLVM_XFORMS_UNIFY_FUNCTION_EXIT_NODES_H
#ifndef LLVM_TRANSFORMS_UNIFYFUNCTIONEXITNODES_H
#define LLVM_TRANSFORMS_UNIFYFUNCTIONEXITNODES_H
#include "llvm/Pass.h"
@ -17,6 +17,9 @@ struct UnifyFunctionExitNodes : public FunctionPass {
public:
UnifyFunctionExitNodes() : ExitNode(0) {}
// We can preserve non-critical-edgeness when we unify function exit nodes
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
// getExitNode - Return the new single (or nonexistant) exit node of the CFG.
//
BasicBlock *getExitNode() const { return ExitNode; }