[llvm] [llvm][DebugInfo] formatv in DWARFGdbIndex (PR #191994)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 01:59:13 PDT 2026
================
@@ -24,13 +24,13 @@ using namespace llvm;
// https://sourceware.org/gdb/onlinedocs/gdb/Index-Section-Format.html
void DWARFGdbIndex::dumpCUList(raw_ostream &OS) const {
- OS << format("\n CU list offset = 0x%x, has %" PRId64 " entries:",
- CuListOffset, (uint64_t)CuList.size())
+ OS << formatv("\n CU list offset = {0:x}, has {1} entries:", CuListOffset,
+ (uint64_t)CuList.size())
----------------
s-barannikov wrote:
```suggestion
CuList.size())
```
I suppose these casts were necessary to be compatible with 32-bit size_t.
https://github.com/llvm/llvm-project/pull/191994
More information about the llvm-commits
mailing list