[llvm] Revert "Adjust LDBG output: surround DebugType between `[` and `]`" (PR #150685)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 25 12:25:39 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Mehdi Amini (joker-eph)

<details>
<summary>Changes</summary>

Reverts llvm/llvm-project#<!-- -->150671 ; buildbot failure.

---
Full diff: https://github.com/llvm/llvm-project/pull/150685.diff


1 Files Affected:

- (modified) llvm/include/llvm/Support/DebugLog.h (+2-2) 


``````````diff
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) && {

``````````

</details>


https://github.com/llvm/llvm-project/pull/150685


More information about the llvm-commits mailing list