[llvm] [llvm-objdump] Add the --visualize-jumps option (PR #74858)

Nick Desaulniers via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 09:02:25 PST 2023


================
@@ -1300,6 +1375,10 @@ collectLocalBranchTargets(ArrayRef<uint8_t> Bytes, MCInstrAnalysis *MIA,
   Start += SectionAddr;
   End += SectionAddr;
   uint64_t Index = Start;
+
+  std::vector<RelocationRef>::const_iterator RelCur = Relocs.begin();
+  std::vector<RelocationRef>::const_iterator RelEnd = Relocs.end();
----------------
nickdesaulniers wrote:

Feel free to use `const auto` here.

https://github.com/llvm/llvm-project/pull/74858


More information about the llvm-commits mailing list