summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/projects/libunwind/src/libunwind.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/projects/libunwind/src/libunwind.cpp')
-rw-r--r--contrib/llvm/projects/libunwind/src/libunwind.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/llvm/projects/libunwind/src/libunwind.cpp b/contrib/llvm/projects/libunwind/src/libunwind.cpp
index f9f32f0..c4e3e45 100644
--- a/contrib/llvm/projects/libunwind/src/libunwind.cpp
+++ b/contrib/llvm/projects/libunwind/src/libunwind.cpp
@@ -66,6 +66,9 @@ _LIBUNWIND_EXPORT int unw_init_local(unw_cursor_t *cursor,
context, LocalAddressSpace::sThisAddressSpace);
#elif defined(__mips__)
#warning The MIPS architecture is not supported.
+#elif defined(__riscv__)
+ new ((void *)cursor) UnwindCursor<LocalAddressSpace, Registers_riscv>(
+ context, LocalAddressSpace::sThisAddressSpace);
#else
#error Architecture not supported
#endif
OpenPOWER on IntegriCloud