mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-26 23:21:11 +00:00
[mlir] fix IRPrinterInstrumentation to use the user-provided IRPrinting config (#70023)
This commit is contained in:
parent
bddd8f46f8
commit
510ec2079e
@ -119,7 +119,8 @@ void IRPrinterInstrumentation::runAfterPassFailed(Pass *pass, Operation *op) {
|
||||
config->printAfterIfEnabled(pass, op, [&](raw_ostream &out) {
|
||||
out << formatv("// -----// IR Dump After {0} Failed ({1})", pass->getName(),
|
||||
pass->getArgument());
|
||||
printIR(op, config->shouldPrintAtModuleScope(), out, OpPrintingFlags());
|
||||
printIR(op, config->shouldPrintAtModuleScope(), out,
|
||||
config->getOpPrintingFlags());
|
||||
out << "\n\n";
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user