Skip to content

Commit ccafe80

Browse files
🐛 Update debug-clang-trunk patch for current LLVM trunk (#109)
LLVM trunk added printDebugLog() and printDebugLogImpl() functions around dbgs() since the patch was written, and refactored setCurrentDebugTypes(). This broke the context lines used by git apply. Update patch offsets and trailing context to match the current LLVM trunk source. 🤖 Generated by LLM (Claude, via OpenClaw) Co-authored-by: mattgodbolt-molty <mattgodbolt-molty@users.noreply.github.com>
1 parent 181b8d3 commit ccafe80

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

build/patches/ce-debug-clang-trunk.patch

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ Date: Mon Aug 4 08:51:48 2025 -0500
55
change dbgs() in case of --debug-to-stdout
66

77
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp
8-
index b6f338f903a9..b2e23b2e076b 100644
98
--- a/llvm/lib/Support/Debug.cpp
109
+++ b/llvm/lib/Support/Debug.cpp
11-
@@ -117,6 +117,11 @@ void setCurrentDebugTypes(const char **Types, unsigned Count) {
10+
@@ -117,6 +117,11 @@
1211

1312
} // namespace llvm
1413

@@ -20,7 +19,7 @@ index b6f338f903a9..b2e23b2e076b 100644
2019
// All Debug.h functionality is a no-op in NDEBUG mode.
2120
#ifndef NDEBUG
2221

23-
@@ -205,23 +210,27 @@ static void debug_user_sig_handler(void *Cookie) {
22+
@@ -207,23 +212,27 @@
2423

2524
/// dbgs - Return a circular-buffered debug stream.
2625
raw_ostream &llvm::dbgs() {
@@ -64,8 +63,8 @@ index b6f338f903a9..b2e23b2e076b 100644
6463
+ }
6564
}
6665

67-
#else
68-
@@ -229,7 +238,11 @@ raw_ostream &llvm::dbgs() {
66+
void llvm::printDebugLog() {
67+
@@ -236,7 +245,11 @@
6968
namespace llvm {
7069
/// dbgs - Return errs().
7170
raw_ostream &dbgs() {

0 commit comments

Comments
 (0)