Skip to content

Commit 89de262

Browse files
authored
Adjust LDBG output: surround DebugType between [ and ] (#150671)
This makes the output more readable by clearly showing the current debug type as a keyword.
1 parent 67658af commit 89de262

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/include/llvm/Support/DebugLog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class LogWithNewline {
3838
raw_ostream &os)
3939
: os(os) {
4040
if (debug_type)
41-
os << debug_type << " ";
42-
os << "[" << file << ":" << line << "] ";
41+
os << "[" << debug_type << "] ";
42+
os << file << ":" << line << " ";
4343
}
4444
~LogWithNewline() { os << '\n'; }
4545
template <typename T> raw_ostream &operator<<(const T &t) && {

0 commit comments

Comments
 (0)