diff options
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 29e832dd58..8e0a86e4a0 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -59,6 +59,7 @@ template<class _MI, class _V> class ValOpIterator; // //--------------------------------------------------------------------------- + class MachineOperand { public: enum MachineOperandType { @@ -330,6 +331,9 @@ public: }; inline _V* operator*() const { return minstr->getOperand(i).getVRegValue();} + + const MachineOperand & getMachineOperand() const { return minstr->getOperand(i); } + inline _V* operator->() const { return operator*(); } // inline bool isDef () const { return (((int) i) == resultPos); } |