Skip to content

Commit d7a7752

Browse files
committed
[MLIR] Use LDBG() macro in Dialect.cpp (NFC)
1 parent 5928619 commit d7a7752

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

mlir/lib/IR/Dialect.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#include "llvm/ADT/MapVector.h"
2020
#include "llvm/ADT/SmallVectorExtras.h"
2121
#include "llvm/ADT/Twine.h"
22-
#include "llvm/Support/Debug.h"
22+
#include "llvm/Support/DebugLog.h"
2323
#include "llvm/Support/Regex.h"
2424
#include <memory>
2525

@@ -104,14 +104,8 @@ void Dialect::addInterface(std::unique_ptr<DialectInterface> interface) {
104104

105105
auto it = registeredInterfaces.try_emplace(interface->getID(),
106106
std::move(interface));
107-
(void)it;
108-
LLVM_DEBUG({
109-
if (!it.second) {
110-
llvm::dbgs() << "[" DEBUG_TYPE
111-
"] repeated interface registration for dialect "
112-
<< getNamespace();
113-
}
114-
});
107+
if (!it.second)
108+
LDBG() << "repeated interface registration for dialect " << getNamespace();
115109
}
116110

117111
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)