[llvm] [DebugInfo] DWARFFormValue use formatv instead of format (PR #180498)

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 9 02:31:49 PST 2026


================
@@ -372,11 +375,11 @@ void DWARFFormValue::dumpAddressSection(const DWARFObject &Obj, raw_ostream &OS,
   ArrayRef<SectionName> SectionNames = Obj.getSectionNames();
   const auto &SecRef = SectionNames[SectionIndex];
 
-  OS << " \"" << SecRef.Name << '\"';
+  OS << formatv(" \"{0}\"", SecRef.Name);
----------------
JDevlieghere wrote:

Not sure this is an improvement in terms of readability and it's definitely less performant, though this is hardly performance sensitive. I'll leave the decision up to you if you.

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


More information about the llvm-commits mailing list