[all-commits] [llvm/llvm-project] 523110: Add support for llvm::MCInstPrinter::setPrintBranc...

tedwoodward via All-commits all-commits at lists.llvm.org
Tue Aug 22 12:16:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 523110d654a286607790e7637da6be312de3a7c7
      https://github.com/llvm/llvm-project/commit/523110d654a286607790e7637da6be312de3a7c7
  Author: Ted Woodward <tedwood at quicinc.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp

  Log Message:
  -----------
  Add support for llvm::MCInstPrinter::setPrintBranchImmAsAddress

llvm::MCInstPrinter has an option, controlled by setPrintBranchImmAsAddress,
to print branch targets as immediate addresses instead of offsets.
Turn this on in lldb, so targets that support this flag will print addresses
instead of offsets.

This requires the address of the instruction be provided, but fortunately
it's calculated right before the call to PrintMCInst.

Reviewed By: jasonmolenda, DavidSpickett

Differential Revision: https://reviews.llvm.org/D155107




More information about the All-commits mailing list