[llvm] [llvm][DebugInfo] Use formatv in DWARFDebugPubTable (PR #191988)

Konrad Kleine via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 16 00:54:18 PDT 2026


================
@@ -93,24 +95,30 @@ void DWARFDebugPubTable::extract(
 void DWARFDebugPubTable::dump(raw_ostream &OS) const {
   for (const Set &S : Sets) {
     int OffsetDumpWidth = 2 * dwarf::getDwarfOffsetByteSize(S.Format);
-    OS << "length = " << format("0x%0*" PRIx64, OffsetDumpWidth, S.Length);
+    OS << "length = "
+       << formatv("0x{0:x-}",
+                  fmt_align(S.Length, AlignStyle::Right, OffsetDumpWidth, '0'));
----------------
kwk wrote:

I've created this issue to not forget about this: https://github.com/llvm/llvm-project/issues/192406

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


More information about the llvm-commits mailing list