diff options
author | dim <dim@FreeBSD.org> | 2016-01-22 20:41:56 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-01-22 20:41:56 +0000 |
commit | 7cf07624a0c8bc9de65a351f13206cea487afb48 (patch) | |
tree | 10bd7a9c1abe1f278df85958745a2a09074c1dda /contrib/llvm/projects/libunwind/src/libunwind.cpp | |
parent | f011e361d3e821edf47ec30d69116ed25a05b696 (diff) | |
parent | 66dd616ca8c4d3779be38f549e7e793674dbfd03 (diff) | |
download | FreeBSD-src-7cf07624a0c8bc9de65a351f13206cea487afb48.zip FreeBSD-src-7cf07624a0c8bc9de65a351f13206cea487afb48.tar.gz |
Merge ^/head r294169 through r294598.
Diffstat (limited to 'contrib/llvm/projects/libunwind/src/libunwind.cpp')
-rw-r--r-- | contrib/llvm/projects/libunwind/src/libunwind.cpp | 3 |
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 |