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 | fe1256903404065be182735c1402411c4940e9e5 (patch) | |
tree | db9823e028828d976fc72c30e8c5cc424addf6ca /include/llvm/Analysis | |
parent | 3c8455152e3d41b8e5f7b33c3ed99c7a8105f5a8 (diff) | |
download | external_llvm-fe1256903404065be182735c1402411c4940e9e5.zip external_llvm-fe1256903404065be182735c1402411c4940e9e5.tar.gz external_llvm-fe1256903404065be182735c1402411c4940e9e5.tar.bz2 |
Be somewhat more consistent about const qualifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-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 8255128..7622326 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); } |