[llvm] 8a5dc12 - [llvm][DebugInfo] formatv in LVObject (#192004)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 03:18:19 PDT 2026


Author: Konrad Kleine
Date: 2026-04-14T12:18:15+02:00
New Revision: 8a5dc1275c45a88e8f9d72230d1df71ee9caeb98

URL: https://github.com/llvm/llvm-project/commit/8a5dc1275c45a88e8f9d72230d1df71ee9caeb98
DIFF: https://github.com/llvm/llvm-project/commit/8a5dc1275c45a88e8f9d72230d1df71ee9caeb98.diff

LOG: [llvm][DebugInfo] formatv in LVObject (#192004)

This relates to #35980.

Added: 
    

Modified: 
    llvm/lib/DebugInfo/LogicalView/Core/LVObject.cpp

Removed: 
    


################################################################################
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