Add getAnalysisUsage method
authorChris Lattner <sabre@nondot.org>
Mon, 31 Mar 2003 17:29:18 +0000 (17:29 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 31 Mar 2003 17:29:18 +0000 (17:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5756 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h

index d31e55b3a834b203f8db1ceed9328a6813c5a75a..01f055e801f1d11f9f7f995effb53a6693c1a2e2 100644 (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; }