[llvm] Revert "Adjust LDBG output: surround DebugType between `[` and `]`" (PR #150685)
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 12:25:08 PDT 2025
https://github.com/joker-eph created https://github.com/llvm/llvm-project/pull/150685
Reverts llvm/llvm-project#150671 ; buildbot failure.
>From 7a76c0f74365133035cd028fa25cf4c32db8a4a9 Mon Sep 17 00:00:00 2001
From: Mehdi Amini <joker.eph at gmail.com>
Date: Fri, 25 Jul 2025 21:24:44 +0200
Subject: [PATCH] Revert "Adjust LDBG output: surround DebugType between `[`
and `]` (#150671)"
This reverts commit 89de262f260868a107319a58a0365b55c9cda126.
---
llvm/include/llvm/Support/DebugLog.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/include/llvm/Support/DebugLog.h b/llvm/include/llvm/Support/DebugLog.h
index 3e53944edc905..9556bf2d6242d 100644
--- a/llvm/include/llvm/Support/DebugLog.h
+++ b/llvm/include/llvm/Support/DebugLog.h
@@ -38,8 +38,8 @@ class LogWithNewline {
raw_ostream &os)
: os(os) {
if (debug_type)
- os << "[" << debug_type << "] ";
- os << file << ":" << line << " ";
+ os << debug_type << " ";
+ os << "[" << file << ":" << line << "] ";
}
~LogWithNewline() { os << '\n'; }
template <typename T> raw_ostream &operator<<(const T &t) && {
More information about the llvm-commits
mailing list