diff options
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 0418b0400d..e7099db6ed 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -952,6 +952,14 @@ public: /// (before the first implicit operand). void addOperand(const MachineOperand &Op); + // Add an operand while providing a context pointer. This will replace the + // single-argument function shortly. + // + // MF must be the machine function that was used to allocate this instruction. + void addOperand(MachineFunction &MF, const MachineOperand &Op) { + addOperand(Op); + } + /// setDesc - Replace the instruction descriptor (thus opcode) of /// the current instruction with a new one. /// |