[llvm] [ORC] Wrap unconditional dbgs() in LLVM_DEBUG in JITLoaderPerf (PR #188903)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 19 01:20:40 PDT 2026
https://github.com/DaniPopes updated https://github.com/llvm/llvm-project/pull/188903
>From 5cd60ef4d46ebab1a09c3004112e506f43ab0ebe Mon Sep 17 00:00:00 2001
From: DaniPopes <57450786+DaniPopes at users.noreply.github.com>
Date: Fri, 27 Mar 2026 04:33:46 +0100
Subject: [PATCH] [ORC] Wrap unconditional dbgs() in LLVM_DEBUG in
JITLoaderPerf
---
.../ExecutionEngine/Orc/TargetProcess/JITLoaderPerf.cpp | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderPerf.cpp b/llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderPerf.cpp
index 301e77255bf07..0022a22f4f46f 100644
--- a/llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderPerf.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderPerf.cpp
@@ -155,10 +155,11 @@ static void writeCodeRecord(const PerfJITCodeLoadRecord &CodeRecord) {
static void
writeUnwindRecord(const PerfJITCodeUnwindingInfoRecord &UnwindRecord) {
assert(State && "PerfState not initialized");
- dbgs() << "Writing unwind record with unwind data size "
- << UnwindRecord.UnwindDataSize << " and EH frame header size "
- << UnwindRecord.EHFrameHdrSize << " and mapped size "
- << UnwindRecord.MappedSize << "\n";
+ LLVM_DEBUG(dbgs() << "Writing unwind record with unwind data size "
+ << UnwindRecord.UnwindDataSize
+ << " and EH frame header size "
+ << UnwindRecord.EHFrameHdrSize << " and mapped size "
+ << UnwindRecord.MappedSize << "\n");
UWR Uwr{RecHeader{static_cast<uint32_t>(UnwindRecord.Prefix.Id),
UnwindRecord.Prefix.TotalSize, perf_get_timestamp()},
UnwindRecord.UnwindDataSize, UnwindRecord.EHFrameHdrSize,
More information about the llvm-commits
mailing list