[llvm] [llvm][DebugInfo] formatv in DWARFUnwindTablePrinter (PR #191999)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 14 00:49:42 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-debuginfo
Author: Konrad Kleine (kwk)
<details>
<summary>Changes</summary>
This relates to #<!-- -->35980.
---
Full diff: https://github.com/llvm/llvm-project/pull/191999.diff
1 Files Affected:
- (modified) llvm/lib/DebugInfo/DWARF/DWARFUnwindTablePrinter.cpp (+2-1)
``````````diff
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()) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/191999
More information about the llvm-commits
mailing list