diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 371d9e12403..fe323444187 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -283,6 +283,8 @@ public: typedef std::map ETMapType; + // FIXME : There is no need to make this interface public. + // Fix predicate simplifier. void updateDFSNumbers(); /// dominates - Return true if A dominates B. @@ -426,6 +428,8 @@ public: } void calculate(const DominatorTree &DT); + // FIXME : There is no need to make getNodeForBlock public. Fix + // predicate simplifier. ETNode *getNodeForBlock(BasicBlock *BB); }; diff --git a/lib/VMCore/Dominators.cpp b/lib/VMCore/Dominators.cpp index 54b05776452..b9cbde44add 100644 --- a/lib/VMCore/Dominators.cpp +++ b/lib/VMCore/Dominators.cpp @@ -921,6 +921,8 @@ const bool ETForestBase::isReachableFromEntry(BasicBlock* A) { return dominates(&A->getParent()->getEntryBlock(), A); } +// FIXME : There is no need to make getNodeForBlock public. Fix +// predicate simplifier. ETNode *ETForest::getNodeForBlock(BasicBlock *BB) { ETNode *&BBNode = Nodes[BB]; if (BBNode) return BBNode;