[llvm] 9f1da15 - [llvm][DebugInfo] formatv in DWARFUnwindTablePrinter (#191999)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 03:04:03 PDT 2026
Author: Konrad Kleine
Date: 2026-04-14T12:03:59+02:00
New Revision: 9f1da15276e18b165c54c00b2ccf2c54839c61f1
URL: https://github.com/llvm/llvm-project/commit/9f1da15276e18b165c54c00b2ccf2c54839c61f1
DIFF: https://github.com/llvm/llvm-project/commit/9f1da15276e18b165c54c00b2ccf2c54839c61f1.diff
LOG: [llvm][DebugInfo] formatv in DWARFUnwindTablePrinter (#191999)
This relates to #35980.
Added:
Modified:
llvm/lib/DebugInfo/DWARF/DWARFUnwindTablePrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFUnwindTablePrinter.cpp b/llvm/lib/DebugInfo/DWARF/DWARFUnwindTablePrinter.cpp
index bdcda266ea69d..90ed1b5c70725 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFUnwindTablePrinter.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFUnwindTablePrinter.cpp
@@ -12,6 +12,7 @@
#include "llvm/DebugInfo/DWARF/DWARFExpressionPrinter.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Format.h"
+#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cinttypes>
@@ -153,7 +154,7 @@ static void printUnwindRow(const UnwindRow &Row, raw_ostream &OS,
DIDumpOptions DumpOpts, unsigned IndentLevel) {
OS.indent(2 * IndentLevel);
if (Row.hasAddress())
- OS << format("0x%" PRIx64 ": ", Row.getAddress());
+ OS << formatv("{0:x}: ", Row.getAddress());
OS << "CFA=";
printUnwindLocation(Row.getCFAValue(), OS, DumpOpts);
if (Row.getRegisterLocations().hasLocations()) {
More information about the llvm-commits
mailing list