Add capability to have a MachineBasicBlock as an operand to a MachineInstr

Add a bunch of methods to MachineOperand is* to reduce usage of MO_foo


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5032 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-12-15 08:01:02 +00:00
parent a4c096d671
commit 8cbfc75d17
2 changed files with 36 additions and 6 deletions

View File

@@ -81,6 +81,11 @@ struct MachineInstrBuilder {
MI->addZeroExtImmOperand(Val);
return *this;
}
const MachineInstrBuilder &addMBB(MachineBasicBlock *MBB) const {
MI->addMachineBasicBlockOperand(MBB);
return *this;
}
};
/// BuildMI - Builder interface. Specify how to create the initial instruction