[libunwind] r279180 - EHABI: cover switch once more
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 18 16:59:12 PDT 2016
Author: compnerd
Date: Thu Aug 18 18:59:12 2016
New Revision: 279180
URL: http://llvm.org/viewvc/llvm-project?rev=279180&view=rev
Log:
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.
Modified:
libunwind/trunk/src/Unwind-EHABI.cpp
Modified: libunwind/trunk/src/Unwind-EHABI.cpp
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/src/Unwind-EHABI.cpp?rev=279180&r1=279179&r2=279180&view=diff
==============================================================================
--- libunwind/trunk/src/Unwind-EHABI.cpp (original)
+++ libunwind/trunk/src/Unwind-EHABI.cpp Thu Aug 18 18:59:12 2016
@@ -804,6 +804,10 @@ _Unwind_VRS_Set(_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");
@@ -854,6 +858,10 @@ _Unwind_VRS_Get_Internal(_Unwind_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");
More information about the cfe-commits
mailing list