Skip to content

Commit e8e9bef

Browse files
authored
[MLIR] Use LDBG in MLIR AsmPrinter (#151163)
1 parent 385fe30 commit e8e9bef

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mlir/lib/IR/AsmPrinter.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#include "llvm/ADT/StringSet.h"
4141
#include "llvm/ADT/TypeSwitch.h"
4242
#include "llvm/Support/CommandLine.h"
43-
#include "llvm/Support/Debug.h"
43+
#include "llvm/Support/DebugLog.h"
4444
#include "llvm/Support/Endian.h"
4545
#include "llvm/Support/ManagedStatic.h"
4646
#include "llvm/Support/Regex.h"
@@ -2070,9 +2070,8 @@ static OpPrintingFlags verifyOpAndAdjustFlags(Operation *op,
20702070
return failure();
20712071
});
20722072
if (failed(verify(op))) {
2073-
LLVM_DEBUG(llvm::dbgs()
2074-
<< DEBUG_TYPE << ": '" << op->getName()
2075-
<< "' failed to verify and will be printed in generic form\n");
2073+
LDBG() << op->getName()
2074+
<< "' failed to verify and will be printed in generic form";
20762075
printerFlags.printGenericOpForm();
20772076
}
20782077

0 commit comments

Comments
 (0)