git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127186 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2011-03-07 22:48:16 +00:00
parent cd77a50e63
commit d756eceb83

View File

@ -356,7 +356,7 @@ namespace llvm {
void removePred(const SDep &D); void removePred(const SDep &D);
/// getDepth - Return the depth of this node, which is the length of the /// getDepth - Return the depth of this node, which is the length of the
/// maximum path up to any node with has no predecessors. /// maximum path up to any node which has no predecessors.
unsigned getDepth() const { unsigned getDepth() const {
if (!isDepthCurrent) if (!isDepthCurrent)
const_cast<SUnit *>(this)->ComputeDepth(); const_cast<SUnit *>(this)->ComputeDepth();
@ -364,7 +364,7 @@ namespace llvm {
} }
/// getHeight - Return the height of this node, which is the length of the /// getHeight - Return the height of this node, which is the length of the
/// maximum path down to any node with has no successors. /// maximum path down to any node which has no successors.
unsigned getHeight() const { unsigned getHeight() const {
if (!isHeightCurrent) if (!isHeightCurrent)
const_cast<SUnit *>(this)->ComputeHeight(); const_cast<SUnit *>(this)->ComputeHeight();