Be somewhat more consistent about const qualifiers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80264 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2009-08-27 17:54:15 +00:00
parent 5753a4a003
commit 1af0513be7

View File

@@ -352,7 +352,7 @@ public:
/// Note that this is not a constant time operation! /// Note that this is not a constant time operation!
/// ///
bool properlyDominates(const DomTreeNodeBase<NodeT> *A, bool properlyDominates(const DomTreeNodeBase<NodeT> *A,
DomTreeNodeBase<NodeT> *B) const { const DomTreeNodeBase<NodeT> *B) const {
if (A == 0 || B == 0) return false; if (A == 0 || B == 0) return false;
return dominatedBySlowTreeWalk(A, B); return dominatedBySlowTreeWalk(A, B);
} }
@@ -383,7 +383,7 @@ public:
/// constant time operation! /// constant time operation!
/// ///
inline bool dominates(const DomTreeNodeBase<NodeT> *A, inline bool dominates(const DomTreeNodeBase<NodeT> *A,
DomTreeNodeBase<NodeT> *B) { const DomTreeNodeBase<NodeT> *B) {
if (B == A) if (B == A)
return true; // A node trivially dominates itself. return true; // A node trivially dominates itself.
@@ -764,7 +764,8 @@ public:
//} //}
} }
inline bool properlyDominates(const DomTreeNode* A, DomTreeNode* B) const { inline bool properlyDominates(const DomTreeNode* A,
const DomTreeNode* B) const {
return DT->properlyDominates(A, B); return DT->properlyDominates(A, B);
} }