From c2f1e32365344eee43372bf1259c9d41423f87c1 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 18 Aug 2016 23:59:12 +0000 Subject: [PATCH] EHABI: cover switch once more When making WMMX support optional, we uncovered the switch. Add the missing entries. Since the entry is a break leading to a dead path, it should get optimized out yet retain the switch overage. llvm-svn: 279180 --- libunwind/src/Unwind-EHABI.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libunwind/src/Unwind-EHABI.cpp b/libunwind/src/Unwind-EHABI.cpp index 5e464f4..0e9b034 100644 --- a/libunwind/src/Unwind-EHABI.cpp +++ b/libunwind/src/Unwind-EHABI.cpp @@ -804,6 +804,10 @@ _Unwind_VRS_Set(_Unwind_Context *context, _Unwind_VRS_RegClass regclass, *(unw_fpreg_t *)valuep) == UNW_ESUCCESS ? _UVRSR_OK : _UVRSR_FAILED; +#else + case _UVRSC_WMMXC: + case _UVRSC_WMMXD: + break; #endif } _LIBUNWIND_ABORT("unsupported register class"); @@ -854,6 +858,10 @@ _Unwind_VRS_Get_Internal(_Unwind_Context *context, (unw_fpreg_t *)valuep) == UNW_ESUCCESS ? _UVRSR_OK : _UVRSR_FAILED; +#else + case _UVRSC_WMMXC: + case _UVRSC_WMMXD: + break; #endif } _LIBUNWIND_ABORT("unsupported register class"); -- 2.7.4