diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2024-08-08 14:25:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-08 14:25:06 +0100 |
commit | fd7d7882e7fa5a38d4bfde426120d4663718beb4 (patch) | |
tree | 44094aa20d55d6eacb94a7dd53d996546fae0896 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 1139dee910c45cfdd4a6066b22addef585e04032 (diff) | |
download | llvm-fd7d7882e7fa5a38d4bfde426120d4663718beb4.zip llvm-fd7d7882e7fa5a38d4bfde426120d4663718beb4.tar.gz llvm-fd7d7882e7fa5a38d4bfde426120d4663718beb4.tar.bz2 |
[DebugInfo][RemoveDIs] Use iterators to insert everywhere (#102003)
These are the final few places in LLVM where we use instruction pointers
to identify the position that we're inserting something. We're trying to
get away from that with a view to deprecating those methods, thus use
iterators in all these places. I believe they're all debug-info safe.
The sketchiest part is the ExtractValueInst copy constructor, where we
cast nullptr to a BasicBlock pointer, so that we take the non-default
insert-into-no-block path for instruction insertion, instead of the
default nullptr-instruction path for UnaryInstruction. Such a hack is
necessary until we get rid of the instruction constructor entirely.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions