diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-27 17:54:15 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-27 17:54:15 +0000 |
commit | 1af0513be758ea49c85e098dc1a3d54157b0def7 (patch) | |
tree | db9823e028828d976fc72c30e8c5cc424addf6ca | |
parent | 5753a4a0033da4add45f2e9930a4e1159d92a869 (diff) |
Be somewhat more consistent about const qualifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80264 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/Dominators.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/Analysis/Dominators.h b/include/llvm/Analysis/Dominators.h index 8255128874..7622326ced 100644 --- a/include/llvm/Analysis/Dominators.h +++ b/include/llvm/Analysis/Dominators.h @@ -352,7 +352,7 @@ public: /// Note that this is not a constant time operation! /// bool properlyDominates(const DomTreeNodeBase<NodeT> *A, - DomTreeNodeBase<NodeT> *B) const { + const DomTreeNodeBase<NodeT> *B) const { if (A == 0 || B == 0) return false; return dominatedBySlowTreeWalk(A, B); } @@ -383,7 +383,7 @@ public: /// constant time operation! /// inline bool dominates(const DomTreeNodeBase<NodeT> *A, - DomTreeNodeBase<NodeT> *B) { + const DomTreeNodeBase<NodeT> *B) { if (B == A) 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); } |