unwind-d2 build workaround for arm64
The __builtin_init_dwarf_reg_size_table function is unimplemented in clang 3.6 for AArch64. Comment it out for now and replace it with a message and abort. Tracked in upstream LLVM PR 22997 https://llvm.org/bugs/show_bug.cgi?id=22997 Submitted by: andrew
This commit is contained in:
parent
f5f299c30b
commit
640cba97d8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280909
@ -1393,7 +1393,16 @@ uw_advance_context (struct _Unwind_Context *context, _Unwind_FrameState *fs)
|
|||||||
static inline void
|
static inline void
|
||||||
init_dwarf_reg_size_table (void)
|
init_dwarf_reg_size_table (void)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* ARM64TODO: http://llvm.org/pr22997
|
||||||
|
* llvm 3.6 doesn't support __builtin_init_dwarf_reg_size_table on AArch64.
|
||||||
|
*/
|
||||||
|
#ifdef __aarch64__
|
||||||
|
printf("Unimplemented: init_dwarf_reg_size_table\n");
|
||||||
|
abort();
|
||||||
|
#else
|
||||||
__builtin_init_dwarf_reg_size_table (dwarf_reg_size_table);
|
__builtin_init_dwarf_reg_size_table (dwarf_reg_size_table);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user