mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-16 14:31:59 +00:00
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:
parent
5753a4a003
commit
1af0513be7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user