Fix unwinder to build for iOS

llvm-svn: 199859
This commit is contained in:
Nick Kledzik 2014-01-23 02:06:19 +00:00
parent 50944eb638
commit fd0a6cf17a
2 changed files with 5 additions and 2 deletions

View File

@ -230,8 +230,9 @@ inline LocalAddressSpace::pint_t LocalAddressSpace::getEncodedP(pint_t &addr,
const void* compact_unwind_section;
uintptr_t compact_unwind_section_length;
};
#if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) \
&& (__MAC_OS_X_VERSION_MIN_REQUIRED >= 1070)
#if (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) \
&& (__MAC_OS_X_VERSION_MIN_REQUIRED >= 1070)) \
|| defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
// In 10.7.0 or later, libSystem.dylib implements this function.
extern "C" bool _dyld_find_unwind_sections(void *, dyld_unwind_sections *);
#else

View File

@ -18,6 +18,8 @@
#if defined(__POWERPC__) || defined(__powerpc__) || defined(__ppc__)
#define SEPARATOR @
#elif defined(__arm64__)
#define SEPARATOR %%
#else
#define SEPARATOR ;
#endif