[llvm] [llvm][DebugInfo] formatv in LVObject (PR #192004)
Konrad Kleine via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 00:52:02 PDT 2026
https://github.com/kwk created https://github.com/llvm/llvm-project/pull/192004
This relates to #35980.
>From 72eea026f96dfaa2de470a1f67ab4bb4cbaf68ae Mon Sep 17 00:00:00 2001
From: Konrad Kleine <kkleine at redhat.com>
Date: Mon, 13 Apr 2026 20:20:58 +0000
Subject: [PATCH] [llvm][DebugInfo] formatv in LVObject
This relates to #35980.
---
llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp b/llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp
index 5ccbcbfa4f0aa..2d76f82a4184d 100644
--- a/llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp
+++ b/llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp
@@ -123,7 +123,7 @@ void LVObject::printAttributes(raw_ostream &OS, bool Full, StringRef Name,
// Print the line.
std::string TheLineNumber(Object.lineNumberAsString());
std::string TheIndentation(Object.indentAsString());
- OS << format(" %5s %s ", TheLineNumber.c_str(), TheIndentation.c_str());
+ OS << formatv(" {0,5} {1} ", TheLineNumber, TheIndentation);
OS << Name;
if (PrintRef && options().getAttributeOffset())
More information about the llvm-commits
mailing list