[libunwind] r250541 - Add FreeBSD _Unwind_Ptr typedef

Ed Maste via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 16 12:40:09 PDT 2015


Author: emaste
Date: Fri Oct 16 14:40:09 2015
New Revision: 250541

URL: http://llvm.org/viewvc/llvm-project?rev=250541&view=rev
Log:
Add FreeBSD _Unwind_Ptr typedef

Differential Revision:	http://reviews.llvm.org/D13820

Modified:
    libunwind/trunk/src/AddressSpace.hpp

Modified: libunwind/trunk/src/AddressSpace.hpp
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/src/AddressSpace.hpp?rev=250541&r1=250540&r2=250541&view=diff
==============================================================================
--- libunwind/trunk/src/AddressSpace.hpp (original)
+++ libunwind/trunk/src/AddressSpace.hpp Fri Oct 16 14:40:09 2015
@@ -35,7 +35,11 @@ namespace libunwind {
 #include "Registers.hpp"
 
 #if _LIBUNWIND_ARM_EHABI
-#ifdef __linux__
+#if defined(__FreeBSD__)
+
+typedef void *_Unwind_Ptr;
+
+#elif defined(__linux__)
 
 typedef long unsigned int *_Unwind_Ptr;
 extern "C" _Unwind_Ptr __gnu_Unwind_Find_exidx(_Unwind_Ptr addr, int *len);




More information about the cfe-commits mailing list