[llvm] [llvm][DebugInfo] formatv in LVCompare (PR #192001)

Konrad Kleine via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 00:09:42 PDT 2026


================
@@ -405,10 +405,10 @@ void LVCompare::printSummary() const {
   auto PrintSeparator = [&]() { OS << Separator << "\n"; };
   auto PrintHeadingRow = [&](const char *T, const char *U, const char *V,
                              const char *W) {
-    OS << format("%-9s%9s  %9s  %9s\n", T, U, V, W);
+    OS << formatv("{0, -9}{1,9}  {2,9}  {3,9}\n", T, U, V, W);
----------------
kwk wrote:

This is a leftover. In earlier PRs we decided to not specify the default separator explicitly again but I must have missed this one. The space is just the default and doesn't need to be specified, be it for left or right alignment. Fixed in d4116bf.


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


More information about the llvm-commits mailing list