[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:25 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'));
----------------
DavidSpickett wrote:
Use x+ instead of writing 0x?
https://github.com/llvm/llvm-project/pull/180498
More information about the llvm-commits
mailing list