diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-06-30 00:10:17 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-06-30 00:10:17 +0000 |
commit | 1bc348a97bf629a298ba91989203cd2a72f43964 (patch) | |
tree | 0bf4eea3cc59199ba770a10b2a1db43d5b268ed8 /lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp | |
parent | 348111f4b95ed88f8099299c13d08583217abdb2 (diff) | |
download | bcm5719-llvm-1bc348a97bf629a298ba91989203cd2a72f43964.tar.gz bcm5719-llvm-1bc348a97bf629a298ba91989203cd2a72f43964.zip |
CodeGen: Add an explicit BuildMI overload for MachineInstr&
Add an explicit overload to BuildMI for MachineInstr& to deal with
insertions inside of instruction bundles.
- Use it to re-implement MachineInstr* to give it coverage.
- Document how the overload for MachineBasicBlock::instr_iterator
differs from that for MachineBasicBlock::iterator (the previous
(implicit) overload for MachineInstr&).
- Add a comment explaining why the MachineInstr& and MachineInstr*
overloads don't universally forward to the
MachineBasicBlock::instr_iterator overload.
Thanks to Justin for noticing the API quirk. While this doesn't fix any
known bugs -- all uses of BuildMI with a MachineInstr& were previously
using MachineBasicBlock::iterator -- it protects against future bugs.
llvm-svn: 274193
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main.cpp')
0 files changed, 0 insertions, 0 deletions