[llvm] [llvm][DebugInfo] formatv in DWARFTypeUnit (PR #191997)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 02:03:53 PDT 2026
================
@@ -22,27 +24,30 @@ void DWARFTypeUnit::dump(raw_ostream &OS, DIDumpOptions DumpOpts) {
if (DumpOpts.SummarizeTypes) {
OS << "name = '" << Name << "'"
- << ", type_signature = " << format("0x%016" PRIx64, getTypeHash())
- << ", length = " << format("0x%0*" PRIx64, OffsetDumpWidth, getLength())
+ << ", type_signature = " << formatv("{0:x16}", getTypeHash())
+ << ", length = "
+ << formatv("0x{0:x-}", fmt_align(getLength(), AlignStyle::Right,
+ OffsetDumpWidth, '0'))
----------------
s-barannikov wrote:
Same suggestion here, otherwise LGTM
https://github.com/llvm/llvm-project/pull/191997
More information about the llvm-commits
mailing list