mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Fix the comments for getDepth and getHeight.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61120 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
28dc98f752
commit
89bf4f2f5e
@ -312,15 +312,15 @@ namespace llvm {
|
|||||||
/// the specified node.
|
/// the specified node.
|
||||||
void removePred(const SDep &D);
|
void removePred(const SDep &D);
|
||||||
|
|
||||||
/// getHeight - Return the height of this node, which is the length of the
|
/// getDepth - Return the depth of this node, which is the length of the
|
||||||
/// maximum path down to any node with has no successors.
|
/// maximum path up to any node with has no predecessors.
|
||||||
unsigned getDepth() const {
|
unsigned getDepth() const {
|
||||||
if (!isDepthCurrent) const_cast<SUnit *>(this)->ComputeDepth();
|
if (!isDepthCurrent) const_cast<SUnit *>(this)->ComputeDepth();
|
||||||
return Depth;
|
return Depth;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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 up to any node with has no predecessors.
|
/// maximum path down to any node with has no successors.
|
||||||
unsigned getHeight() const {
|
unsigned getHeight() const {
|
||||||
if (!isHeightCurrent) const_cast<SUnit *>(this)->ComputeHeight();
|
if (!isHeightCurrent) const_cast<SUnit *>(this)->ComputeHeight();
|
||||||
return Height;
|
return Height;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user