[llvm-commits] CVS: llvm/include/llvm/Analysis/Dominators.h
Owen Anderson
resistor at mac.com
Sun Apr 8 21:07:58 PDT 2007
Changes in directory llvm/include/llvm/Analysis:
Dominators.h updated: 1.68 -> 1.69
---
Log message:
Move isReachableFromEntry out of line to avoid an unnecessary #include
---
Diffs of the changes: (+1 -4)
Dominators.h | 5 +----
1 files changed, 1 insertion(+), 4 deletions(-)
Index: llvm/include/llvm/Analysis/Dominators.h
diff -u llvm/include/llvm/Analysis/Dominators.h:1.68 llvm/include/llvm/Analysis/Dominators.h:1.69
--- llvm/include/llvm/Analysis/Dominators.h:1.68 Sun Apr 8 19:52:49 2007
+++ llvm/include/llvm/Analysis/Dominators.h Sun Apr 8 23:07:36 2007
@@ -27,7 +27,6 @@
#define LLVM_ANALYSIS_DOMINATORS_H
#include "llvm/Analysis/ET-Forest.h"
-#include "llvm/Function.h"
#include "llvm/Pass.h"
#include <set>
@@ -408,9 +407,7 @@
/// isReachableFromEntry - Return true if A is dominated by the entry
/// block of the function containing it.
- bool isReachableFromEntry(BasicBlock* A) {
- return dominates(&A->getParent()->getEntryBlock(), A);
- }
+ const bool isReachableFromEntry(BasicBlock* A);
/// Return the nearest common dominator of A and B.
BasicBlock *nearestCommonDominator(BasicBlock *A, BasicBlock *B) const {
More information about the llvm-commits
mailing list