Require the two-argument MI::addOperand(MF, MO) for dangling instructions.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 20 Dec 2012 22:54:05 +0000 (22:54 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 20 Dec 2012 22:54:05 +0000 (22:54 +0000)
commit2455b585514887c104f5681381ced1847870d001
treecaa2af47a6a2063a116f5596b22bd19e232a4da9
parent33f5d1492d624c12d12226a3fae08aa126855c5b
Require the two-argument MI::addOperand(MF, MO) for dangling instructions.

Instructions that are inserted in a basic block can still be decorated
with addOperand(MO).

Make the two-argument addOperand() function contain the actual
implementation. This function will now always have a valid MF reference
that it can use for memory allocation.

llvm-svn: 170798
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/CodeGen/MachineInstr.cpp