[llvm] [llvm][DebugInfo] formatv in DWARFUnitIndex (PR #191998)

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 02:08:43 PDT 2026


================
@@ -226,7 +228,7 @@ void DWARFUnitIndex::dump(raw_ostream &OS) const {
          << left_justify(Name,
                          Kind == DWARFSectionKind::DW_SECT_INFO ? 40 : 24);
     else
-      OS << format(" Unknown: %-15" PRIu32, RawSectionIds[i]);
+      OS << formatv(" Unknown: {0, -15}", RawSectionIds[i]);
----------------
DavidSpickett wrote:

I am also wondering about this style or requirement or whatever it may be with these negative alignment/paddings.

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


More information about the llvm-commits mailing list