mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Fix the comments for getDepth and getHeight.
llvm-svn: 61120
This commit is contained in:
parent
4aae828bf8
commit
dd705ea3e6
@ -312,15 +312,15 @@ namespace llvm {
|
||||
/// the specified node.
|
||||
void removePred(const SDep &D);
|
||||
|
||||
/// getHeight - Return the height of this node, which is the length of the
|
||||
/// maximum path down to any node with has no successors.
|
||||
/// getDepth - Return the depth of this node, which is the length of the
|
||||
/// maximum path up to any node with has no predecessors.
|
||||
unsigned getDepth() const {
|
||||
if (!isDepthCurrent) const_cast<SUnit *>(this)->ComputeDepth();
|
||||
return Depth;
|
||||
}
|
||||
|
||||
/// 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 {
|
||||
if (!isHeightCurrent) const_cast<SUnit *>(this)->ComputeHeight();
|
||||
return Height;
|
||||
|
Loading…
x
Reference in New Issue
Block a user