mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Add some constantness in MachinePostDominators.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176784 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec3bb4b660
commit
35d00e55dc
@ -55,26 +55,27 @@ public:
|
|||||||
return DT->getNode(BB);
|
return DT->getNode(BB);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool dominates(MachineDomTreeNode *A, MachineDomTreeNode *B) const {
|
bool dominates(const MachineDomTreeNode *A,
|
||||||
|
const MachineDomTreeNode *B) const {
|
||||||
return DT->dominates(A, B);
|
return DT->dominates(A, B);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool dominates(MachineBasicBlock *A, MachineBasicBlock *B) const {
|
bool dominates(const MachineBasicBlock *A, const MachineBasicBlock *B) const {
|
||||||
return DT->dominates(A, B);
|
return DT->dominates(A, B);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool properlyDominates(const MachineDomTreeNode *A,
|
||||||
properlyDominates(const MachineDomTreeNode *A, MachineDomTreeNode *B) const {
|
const MachineDomTreeNode *B) const {
|
||||||
return DT->properlyDominates(A, B);
|
return DT->properlyDominates(A, B);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool properlyDominates(const MachineBasicBlock *A,
|
||||||
properlyDominates(MachineBasicBlock *A, MachineBasicBlock *B) const {
|
const MachineBasicBlock *B) const {
|
||||||
return DT->properlyDominates(A, B);
|
return DT->properlyDominates(A, B);
|
||||||
}
|
}
|
||||||
|
|
||||||
MachineBasicBlock *findNearestCommonDominator(MachineBasicBlock *A,
|
MachineBasicBlock *findNearestCommonDominator(MachineBasicBlock *A,
|
||||||
MachineBasicBlock *B) {
|
MachineBasicBlock *B) {
|
||||||
return DT->findNearestCommonDominator(A, B);
|
return DT->findNearestCommonDominator(A, B);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user