[llvm] [NFC] Separate UnwindTable from DebugFrame into a different type (PR #142521)
AmirHossein PashaeeHir via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 5 10:52:02 PDT 2025
================
@@ -0,0 +1,102 @@
+//===- DWARFUnwindTablePrinter.h --------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_DEBUGINFO_DWARF_DWARFUNWINDTABLEPRINTER_H
+#define LLVM_DEBUGINFO_DWARF_DWARFUNWINDTABLEPRINTER_H
+
+#include "llvm/DebugInfo/DWARF/LowLevel/DWARFUnwindTable.h"
+#include "llvm/Support/Compiler.h"
+
+namespace llvm {
+
+struct DIDumpOptions;
+
+namespace dwarf {
+
+/// Print an unwind location expression as text and use the register information
+/// if some is provided.
+///
+/// \param R the unwind location to print.
+///
+/// \param OS the stream to use for output.
+///
+/// \param MRI register information that helps emit register names insteead
+/// of raw register numbers.
+///
+/// \param IsEH true if the DWARF Call Frame Information is from .eh_frame
+/// instead of from .debug_frame. This is needed for register number
+/// conversion because some register numbers differ between the two sections
+/// for certain architectures like x86.
+LLVM_ABI void printUnwindLocation(const UnwindLocation &R, raw_ostream &OS,
+ DIDumpOptions DumpOpts);
----------------
amsen20 wrote:
Fixed
https://github.com/llvm/llvm-project/pull/142521
More information about the llvm-commits
mailing list