Fix MachineDominators' getAnalysisUsage.
authorOwen Anderson <resistor@mac.com>
Thu, 8 Nov 2007 01:22:53 +0000 (01:22 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 8 Nov 2007 01:22:53 +0000 (01:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43868 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineDominators.h

index 11ad1ae1448aa2ee675dfabe06020b28fff0b3f8..01a09a79226501d74d5a42bca7fafcbbbc575ec9 100644 (file)
@@ -54,6 +54,11 @@ public:
     delete DT;
   }
   
+   virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+     AU.setPreservesAll();
+     MachineFunctionPass::getAnalysisUsage(AU);
+   }
+  
   /// getRoots -  Return the root blocks of the current CFG.  This may include
   /// multiple blocks if we are computing post dominators.  For forward
   /// dominators, this will always be a single block (the entry node).
@@ -76,10 +81,6 @@ public:
     return false;
   }
   
-  virtual void getAnalysisUsage(AnalysisUsage &AU) const {
-    AU.setPreservesAll();
-  }
-  
   inline bool dominates(MachineDomTreeNode* A, MachineDomTreeNode* B) const {
     return DT->dominates(A, B);
   }