1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Add an isReachableFromEntry to MachineDominators, following the one

in Dominators.

llvm-svn: 100454
This commit is contained in:
Dan Gohman 2010-04-05 19:16:38 +00:00
parent 899c498b79
commit fab42b8e7b

View File

@ -157,6 +157,11 @@ public:
DT->splitBlock(NewBB); DT->splitBlock(NewBB);
} }
/// isReachableFromEntry - Return true if A is dominated by the entry
/// block of the function containing it.
bool isReachableFromEntry(MachineBasicBlock *A) {
return DT->isReachableFromEntry(A);
}
virtual void releaseMemory(); virtual void releaseMemory();