aboutsummaryrefslogtreecommitdiff
path: root/rcc/cmake/unwind.h
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-10-21 08:10:34 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-10-21 08:10:34 +0800
commitbbfffc8ce49b9afe854f0799513ab6b7891d6dab (patch)
treed1b2a1cc8166270764b627960fa193b60e9b3271 /rcc/cmake/unwind.h
parent49de843452f161ee42cb8f4ff4780ccc02ae3a7a (diff)
downloadrcc-project-bbfffc8ce49b9afe854f0799513ab6b7891d6dab.tar.gz
rcc-project-bbfffc8ce49b9afe854f0799513ab6b7891d6dab.tar.xz
[CMake] Add RCC platform configuration checks
Diffstat (limited to 'rcc/cmake/unwind.h')
-rw-r--r--rcc/cmake/unwind.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/rcc/cmake/unwind.h b/rcc/cmake/unwind.h
new file mode 100644
index 0000000..52243f2
--- /dev/null
+++ b/rcc/cmake/unwind.h
@@ -0,0 +1,8 @@
+// NOLINT: llvm-header-guard
+// __register_frame() is used with dynamically generated code to register the
+// FDE for a generated (JIT) code. This header provides protypes, since the gcc
+// version of unwind.h may not, so CMake can check if the corresponding symbols
+// exist in the runtime.
+extern void __register_frame(const void *fde); // NOLINT
+extern void __deregister_frame(const void *fde); // NOLINT
+extern void __unw_add_dynamic_fde(); // NOLINT