[llvm-commits] [llvm] r43868 - /llvm/trunk/include/llvm/CodeGen/MachineDominators.h
Owen Anderson
resistor at mac.com
Wed Nov 7 17:22:53 PST 2007
Author: resistor
Date: Wed Nov 7 19:22:53 2007
New Revision: 43868
URL: http://llvm.org/viewvc/llvm-project?rev=43868&view=rev
Log:
Fix MachineDominators' getAnalysisUsage.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineDominators.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineDominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineDominators.h?rev=43868&r1=43867&r2=43868&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineDominators.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineDominators.h Wed Nov 7 19:22:53 2007
@@ -54,6 +54,11 @@
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 @@
return false;
}
- virtual void getAnalysisUsage(AnalysisUsage &AU) const {
- AU.setPreservesAll();
- }
-
inline bool dominates(MachineDomTreeNode* A, MachineDomTreeNode* B) const {
return DT->dominates(A, B);
}
More information about the llvm-commits
mailing list