[BOLT][NFC] Pass Function to BC.printInstructions in BinaryBasicBlock::dump
authorAmir Ayupov <aaupov@fb.com>
Mon, 13 Jun 2022 21:26:14 +0000 (14:26 -0700)
committerAmir Ayupov <aaupov@fb.com>
Mon, 13 Jun 2022 21:26:51 +0000 (14:26 -0700)
commit02d510b41698221a993a16247b812c34c7a127e1
treee6cfe42aa7256bbcfea8e25422623846d060bdfc
parent5c41b0f429652ef50b9378e890f17a1426958e17
[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
bolt/lib/Core/BinaryBasicBlock.cpp