mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-26 07:34:14 +00:00
Clarify "node" vs. "value" in some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54409 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
46bbad217b
commit
6da38a05f6
@ -1101,17 +1101,17 @@ public:
|
||||
return ~NodeType;
|
||||
}
|
||||
|
||||
/// use_empty - Return true if there are no uses of this value.
|
||||
/// use_empty - Return true if there are no uses of this node.
|
||||
///
|
||||
bool use_empty() const { return Uses == NULL; }
|
||||
|
||||
/// hasOneUse - Return true if there is exactly one use of this value.
|
||||
/// hasOneUse - Return true if there is exactly one use of this node.
|
||||
///
|
||||
bool hasOneUse() const {
|
||||
return !use_empty() && next(use_begin()) == use_end();
|
||||
}
|
||||
|
||||
/// use_size - Return the number of uses of this value. This method takes
|
||||
/// use_size - Return the number of uses of this node. This method takes
|
||||
/// time proportional to the number of uses.
|
||||
///
|
||||
size_t use_size() const { return std::distance(use_begin(), use_end()); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user