[llvm] 20d9353 - Revert "Adjust LDBG output: surround DebugType between `[` and `]`" (#150685)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 25 12:25:12 PDT 2025
Author: Mehdi Amini
Date: 2025-07-25T21:25:10+02:00
New Revision: 20d93536fccad1d1901c2182e789c5371a072c47
URL: https://github.com/llvm/llvm-project/commit/20d93536fccad1d1901c2182e789c5371a072c47
DIFF: https://github.com/llvm/llvm-project/commit/20d93536fccad1d1901c2182e789c5371a072c47.diff
LOG: Revert "Adjust LDBG output: surround DebugType between `[` and `]`" (#150685)
Reverts llvm/llvm-project#150671 ; buildbot failure.
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-commits
mailing list