[all-commits] [llvm/llvm-project] 02d510: [BOLT][NFC] Pass Function to BC.printInstructions ...

Amir Ayupov via All-commits all-commits at lists.llvm.org
Mon Jun 13 14:27:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02d510b41698221a993a16247b812c34c7a127e1
      https://github.com/llvm/llvm-project/commit/02d510b41698221a993a16247b812c34c7a127e1
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2022-06-13 (Mon, 13 Jun 2022)

  Changed paths:
    M bolt/lib/Core/BinaryBasicBlock.cpp

  Log Message:
  -----------
  [BOLT][NFC] Pass Function to BC.printInstructions in BinaryBasicBlock::dump

BC::printInstruction(s) has many uses of Function ptr if it's available:
# printing CFI instructions (unconditional)
# printing debug line information (-print-debug-info)
# printing instruction relocations (-print-relocations)

Enable these uses by passing Function ptr from the primary printing entry point:
BinaryBasicBlock::dump.

Reviewed By: maksfb

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




More information about the All-commits mailing list