[llvm] [DebugInfo] DWARFFormValue use formatv instead of format (PR #180498)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 05:08:24 PST 2026
================
@@ -489,13 +493,14 @@ void DWARFFormValue::dump(raw_ostream &OS, DIDumpOptions DumpOpts) const {
break;
case DW_FORM_strp:
if (DumpOpts.Verbose)
- OS << format(" .debug_str[0x%0*" PRIx64 "] = ", OffsetDumpWidth, UValue);
+ OS << formatv(" .debug_str[0x{0:x-}] = ",
+ fmt_align(UValue, AlignStyle::Right, OffsetDumpWidth, '0'));
dumpString(OS);
break;
case DW_FORM_line_strp:
if (DumpOpts.Verbose)
- OS << format(" .debug_line_str[0x%0*" PRIx64 "] = ", OffsetDumpWidth,
- UValue);
+ OS << formatv(" .debug_line_str[0x{0:x-}] = ",
----------------
DavidSpickett wrote:
x+ instead of 0x?
https://github.com/llvm/llvm-project/pull/180498
More information about the llvm-commits
mailing list