diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-12-20 22:53:58 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-12-20 22:53:58 +0000 |
commit | 9500e5d07ac9b94c8fed74150e444778a0dcb036 (patch) | |
tree | 99fcd93f8023dd53be27cdf5226d781c49096852 /include/llvm/CodeGen/MachineInstr.h | |
parent | b9efafe54d61e85ca5209c4043aa814f89785195 (diff) | |
download | external_llvm-9500e5d07ac9b94c8fed74150e444778a0dcb036.zip external_llvm-9500e5d07ac9b94c8fed74150e444778a0dcb036.tar.gz external_llvm-9500e5d07ac9b94c8fed74150e444778a0dcb036.tar.bz2 |
Use two-arg addOperand(MF, MO) internally in MachineInstr when possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 1608a66..00df495 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -97,7 +97,8 @@ private: /// MachineInstr ctor - This constructor create a MachineInstr and add the /// implicit operands. It reserves space for number of operands specified by /// MCInstrDesc. An explicit DebugLoc is supplied. - MachineInstr(const MCInstrDesc &MCID, const DebugLoc dl, bool NoImp = false); + MachineInstr(MachineFunction&, const MCInstrDesc &MCID, + const DebugLoc dl, bool NoImp = false); ~MachineInstr(); @@ -997,7 +998,7 @@ private: /// addImplicitDefUseOperands - Add all implicit def and use operands to /// this instruction. - void addImplicitDefUseOperands(); + void addImplicitDefUseOperands(MachineFunction &MF); /// RemoveRegOperandsFromUseLists - Unlink all of the register operands in /// this instruction from their respective use lists. This requires that the |