summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc/Disassembler.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-12-19 19:19:01 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-12-19 19:19:01 +0000
commit35641e41eb2efd9d76c5b4d9243b825b1e00e00f (patch)
tree1cefb9699668f27f7efa79aaeed5d70fa00538f6 /llvm/tools/llvm-mc/Disassembler.cpp
parenta1f8571e849eb935f27f61087a22d0295b079463 (diff)
downloadbcm5719-llvm-35641e41eb2efd9d76c5b4d9243b825b1e00e00f.tar.gz
bcm5719-llvm-35641e41eb2efd9d76c5b4d9243b825b1e00e00f.zip
Add an MF argument to MachineInstr::addOperand().
Just like for addMemOperand(), the function pointer provides a context for allocating memory. This will make it possible to use a better memory allocation strategy for the MI operand list, which is currently a slow std::vector. Most calls to addOperand() come from MachineInstrBuilder, so give that class an MF reference as well. Code using BuildMI() won't need changing at all since the MF reference is already required to allocate a MachineInstr. Future patches will fix code that calls MI::addOperand(Op) directly, as well as code that uses the now deprecated MachineInstrBuilder(MI) constructor. llvm-svn: 170574
Diffstat (limited to 'llvm/tools/llvm-mc/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud