Skip building unused parts when targeting SJLJ
authorMartin Storsjo <martin@martin.st>
Tue, 26 Sep 2017 08:07:26 +0000 (08:07 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 26 Sep 2017 08:07:26 +0000 (08:07 +0000)
commitb51c49aa5202823f459d52adb9c20131928712a8
tree779893dc2bce0976f284ce93a3ddad4773a04408
parent3b6ea6a4e2bc5d7e7f453c34aa41d01d5153aad1
Skip building unused parts when targeting SJLJ

When SJLJ exceptions are used, those functions aren't used.

This fixes build failures on ARM with SJLJ enabled (e.g. on armv7/iOS)
when built using the CMake project files.

Differential Revision: https://reviews.llvm.org/D38249

llvm-svn: 314197
libunwind/src/UnwindLevel1.c
libunwind/src/UnwindRegistersRestore.S
libunwind/src/UnwindRegistersSave.S
libunwind/src/libunwind.cpp