mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
rename hasVariableOperands() -> isVariadic(). Add some comments.
Evan, please review the comments I added to getNumDefs to make sure that they are accurate, thx. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -488,8 +488,7 @@ MachineInstr *MachineInstr::removeFromParent() {
|
||||
///
|
||||
bool MachineInstr::OperandsComplete() const {
|
||||
unsigned short NumOperands = TID->getNumOperands();
|
||||
if (TID->hasVariableOperands() == 0 &&
|
||||
getNumOperands()-NumImplicitOps >= NumOperands)
|
||||
if (!TID->isVariadic() && getNumOperands()-NumImplicitOps >= NumOperands)
|
||||
return true; // Broken: we have all the operands of this instruction!
|
||||
return false;
|
||||
}
|
||||
@ -498,7 +497,7 @@ bool MachineInstr::OperandsComplete() const {
|
||||
///
|
||||
unsigned MachineInstr::getNumExplicitOperands() const {
|
||||
unsigned NumOperands = TID->getNumOperands();
|
||||
if (TID->hasVariableOperands() == 0)
|
||||
if (!TID->isVariadic())
|
||||
return NumOperands;
|
||||
|
||||
for (unsigned e = getNumOperands(); NumOperands != e; ++NumOperands) {
|
||||
|
Reference in New Issue
Block a user