[PATCH] D101145: [MC][AMDGPU][llvm-objdump] Synthesized local labels in disassembly

Ronak Chauhan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 23 03:44:59 PDT 2021


rochauha added inline comments.


================
Comment at: llvm/tools/llvm-objdump/llvm-objdump.cpp:1836-1873
+        DisAsm->setSymbolizer(std::move(Symbolizer));
+
+        // Synthesize labels referenced by branch instructions by
+        // disassembling, discarding the output, and collecting the referenced
+        // addresses from the symbolizer.
+        ArrayRef<uint8_t> Bytes = arrayRefFromStringRef(
+            unwrapOrError(Section.getContents(), Obj->getFileName()));
----------------
I meant this entire snippet in my previous comment, apologies for causing confusion.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101145/new/

https://reviews.llvm.org/D101145



More information about the llvm-commits mailing list