[llvm] Generate an .sframe section with a skeleton header (PR #151223)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 02:13:26 PDT 2025


================
@@ -0,0 +1,36 @@
+//===- MCSFrame.h - Machine Code SFrame support -----------------*- 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
+//
+//===----------------------------------------------------------------------===//
+//
+// This file contains the declaration of MCSFrameEmitter to support emitting
+// sframe unwinding info from .cfi_* directives. It relies on FDEs and CIEs
+// created for Dwarf frame info, but emits that info in a different format.
+//
+// See https://sourceware.org/binutils/docs-2.41/sframe-spec.html
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_MC_MCSFRAME_H
+#define LLVM_MC_MCSFRAME_H
+
+#include <cstdint>
+
+#include "llvm/ADT/SmallVector.h"
----------------
jh7370 wrote:

```suggestion
#include "llvm/ADT/SmallVector.h"
#include <cstdint>
```

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


More information about the llvm-commits mailing list