[llvm-branch-commits] [llvm] 7a76c0f - Revert "Adjust LDBG output: surround DebugType between `[` and `]` (#150671)"
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jul 25 12:24:46 PDT 2025
Author: Mehdi Amini
Date: 2025-07-25T21:24:44+02:00
New Revision: 7a76c0f74365133035cd028fa25cf4c32db8a4a9
URL: https://github.com/llvm/llvm-project/commit/7a76c0f74365133035cd028fa25cf4c32db8a4a9
DIFF: https://github.com/llvm/llvm-project/commit/7a76c0f74365133035cd028fa25cf4c32db8a4a9.diff
LOG: Revert "Adjust LDBG output: surround DebugType between `[` and `]` (#150671)"
This reverts commit 89de262f260868a107319a58a0365b55c9cda126.
Added:
Modified:
llvm/include/llvm/Support/DebugLog.h
Removed:
################################################################################
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-branch-commits
mailing list