Put up warning signs around MO::getNextOperandForReg().

llvm-svn: 161329
This commit is contained in:
Jakob Stoklund Olesen 2012-08-06 18:48:43 +00:00
parent 7d6e08560b
commit 8b7cfe33ec
1 changed files with 4 additions and 2 deletions

View File

@ -302,8 +302,10 @@ public:
return !isUndef() && !isInternalRead() && (isUse() || getSubReg());
}
/// getNextOperandForReg - Return the next MachineOperand in the function that
/// uses or defines this register.
/// getNextOperandForReg - Return the next MachineOperand in the linked list
/// of operands that use or define the same register.
/// Don't call this function directly, see the def-use iterators in
/// MachineRegisterInfo instead.
MachineOperand *getNextOperandForReg() const {
assert(isReg() && "This is not a register operand!");
return Contents.Reg.Next;