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)
commit56706db45bbc7be0c087451ca9f1d258324df4b2
tree9d3f00f5794af62b0a2abd3af64b29f07771e19b
parentbe06aacaa9a270384599bbfa850b967e9996b9fb
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170798 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp