This is an archive of the discontinued LLVM Phabricator instance.

[libunwind] Skip building unused parts when targeting SJLJ
ClosedPublic

Authored by mstorsjo on Sep 25 2017, 12:54 PM.

Details

Summary

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

This fixes build failures on ARM with SJLJ enabled, such as armv7/iOS.

Diff Detail

Event Timeline

mstorsjo created this revision.Sep 25 2017, 12:54 PM
compnerd accepted this revision.Sep 25 2017, 9:01 PM
compnerd added inline comments.
src/libunwind.cpp
27

I would prefer that you used:

#if !defined(__USING_SJLJ_EXCEPTIONS__)
This revision is now accepted and ready to land.Sep 25 2017, 9:01 PM
mstorsjo closed this revision.Sep 26 2017, 1:12 AM
mstorsjo marked an inline comment as done.

Committed in SVN r314197.