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

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 10 05:08:24 PST 2026


================
@@ -353,7 +355,8 @@ bool DWARFFormValue::extractValue(const DWARFDataExtractor &Data,
 void DWARFFormValue::dumpAddress(raw_ostream &OS, uint8_t AddressSize,
                                  uint64_t Address) {
   uint8_t HexDigits = AddressSize * 2;
-  OS << format("0x%*.*" PRIx64, HexDigits, HexDigits, Address);
+  OS << formatv("0x{0:x-}",
----------------
DavidSpickett wrote:

x+ here instead of writing out 0x?

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


More information about the llvm-commits mailing list