diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-06 18:48:43 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-08-06 18:48:43 +0000 |
commit | 4adbe34ad6755d3ed9d4175db907d231e80da97e (patch) | |
tree | 48a7568a0f6ff314d9f60eeb2a0cd1ed838e5bcb /include | |
parent | e76c903bd2233159910ee6ed236390955714e07d (diff) | |
download | external_llvm-4adbe34ad6755d3ed9d4175db907d231e80da97e.zip external_llvm-4adbe34ad6755d3ed9d4175db907d231e80da97e.tar.gz external_llvm-4adbe34ad6755d3ed9d4175db907d231e80da97e.tar.bz2 |
Put up warning signs around MO::getNextOperandForReg().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161329 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineOperand.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h index c3b4f7c..5b5790f 100644 --- a/include/llvm/CodeGen/MachineOperand.h +++ b/include/llvm/CodeGen/MachineOperand.h @@ -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; |