diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-29 23:18:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-29 23:18:23 +0000 |
commit | 7db458fb0768059f050d3a0f1a26818fa8e22712 (patch) | |
tree | 5afe2b029f69d09ae5ae6ac750119db7c312381a /include/llvm/CodeGen/MachineInstrBuilder.h | |
parent | a3bbcb5b664c1c851b87392119608901b2e1837c (diff) |
Add capability to have machine instruction autoinsert when it is created
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstrBuilder.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h index 9b61abe4ba..909d101e90 100644 --- a/include/llvm/CodeGen/MachineInstrBuilder.h +++ b/include/llvm/CodeGen/MachineInstrBuilder.h @@ -78,11 +78,9 @@ inline MachineInstrBuilder BuildMI(MachineOpCode Opcode, unsigned NumOperands) { return MachineInstrBuilder(new MachineInstr(Opcode, NumOperands, true, true)); } -#if 0 -inline MachineInstrBuilder BuildMI(MBasicBlock *BB, MachineOpCode Opcode, - unsigned DestReg = 0) { - return MachineInstrBuilder(new MachineInstr(BB, Opcode, DestReg)); +inline MachineInstrBuilder BuildMI(MachineBasicBlock *BB, MachineOpCode Opcode, + unsigned NumOperands) { + return MachineInstrBuilder(new MachineInstr(BB, Opcode, NumOperands)); } -#endif - + #endif |