[llvm] 89de262 - Adjust LDBG output: surround DebugType between `[` and `]` (#150671)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 12:08:05 PDT 2025
Author: Mehdi Amini
Date: 2025-07-25T21:08:02+02:00
New Revision: 89de262f260868a107319a58a0365b55c9cda126
URL: https://github.com/llvm/llvm-project/commit/89de262f260868a107319a58a0365b55c9cda126
DIFF: https://github.com/llvm/llvm-project/commit/89de262f260868a107319a58a0365b55c9cda126.diff
LOG: Adjust LDBG output: surround DebugType between `[` and `]` (#150671)
This makes the output more readable by clearly showing the current debug
type as a keyword.
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 9556bf2d6242d..3e53944edc905 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