Be somewhat more consistent about const qualifiers.
authorDan Gohman <gohman@apple.com>
Thu, 27 Aug 2009 17:54:15 +0000 (17:54 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 27 Aug 2009 17:54:15 +0000 (17:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80264 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/Dominators.h

index 82551288743696221864c8a3009bde8ca4ef71ce..7622326ced917ee999f39f3b975dafda48fdfe14 100644 (file)
@@ -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);
   }