[MLIR] Use LDBG() macro in Dialect.cpp (NFC) (#154720)
This commit is contained in:
parent
59286193fc
commit
db0529dca3
@ -19,7 +19,7 @@
|
||||
#include "llvm/ADT/MapVector.h"
|
||||
#include "llvm/ADT/SmallVectorExtras.h"
|
||||
#include "llvm/ADT/Twine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/DebugLog.h"
|
||||
#include "llvm/Support/Regex.h"
|
||||
#include <memory>
|
||||
|
||||
@ -104,14 +104,8 @@ void Dialect::addInterface(std::unique_ptr<DialectInterface> interface) {
|
||||
|
||||
auto it = registeredInterfaces.try_emplace(interface->getID(),
|
||||
std::move(interface));
|
||||
(void)it;
|
||||
LLVM_DEBUG({
|
||||
if (!it.second) {
|
||||
llvm::dbgs() << "[" DEBUG_TYPE
|
||||
"] repeated interface registration for dialect "
|
||||
<< getNamespace();
|
||||
}
|
||||
});
|
||||
if (!it.second)
|
||||
LDBG() << "repeated interface registration for dialect " << getNamespace();
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
x
Reference in New Issue
Block a user