[llvm-commits] [llvm] r80264 - /llvm/trunk/include/llvm/Analysis/Dominators.h
Dan Gohman
gohman at apple.com
Thu Aug 27 10:54:15 PDT 2009
Author: djg
Date: Thu Aug 27 12:54:15 2009
New Revision: 80264
URL: http://llvm.org/viewvc/llvm-project?rev=80264&view=rev
Log:
Be somewhat more consistent about const qualifiers.
Modified:
llvm/trunk/include/llvm/Analysis/Dominators.h
Modified: llvm/trunk/include/llvm/Analysis/Dominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/Dominators.h?rev=80264&r1=80263&r2=80264&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/Dominators.h (original)
+++ llvm/trunk/include/llvm/Analysis/Dominators.h Thu Aug 27 12:54:15 2009
@@ -352,7 +352,7 @@
/// 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 @@
/// 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 @@
//}
}
- inline bool properlyDominates(const DomTreeNode* A, DomTreeNode* B) const {
+ inline bool properlyDominates(const DomTreeNode* A,
+ const DomTreeNode* B) const {
return DT->properlyDominates(A, B);
}
More information about the llvm-commits
mailing list