[llvm] [BOLT] Add a printing function for MCInst (PR #67225)

Vladislav Khmelevsky via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 23 02:24:34 PDT 2023


================
@@ -389,6 +389,13 @@ bool BinaryFunction::isForwardCall(const MCSymbol *CalleeSymbol) const {
   }
 }
 
+void BinaryFunction::dump(const MCInst &Inst) const {
+  if (!BC.InstPrinter)
----------------
yota9 wrote:

It seems to me it is more of a BC interace, not BF. Also suggest you to write something on if instprinter is not ready.
Anyway it needs to be used somehow, it could not be just merged without proper usage, tests & etc

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


More information about the llvm-commits mailing list