diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-02-28 02:23:54 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2015-02-28 02:23:54 +0000 |
| commit | 48205982a3bc815d3619857ab7654322f1f0c973 (patch) | |
| tree | 665b128f613816606d392793b1ec86b62a2d3105 /libcxxabi/src/Unwind/AddressSpace.hpp | |
| parent | 28e61ce60f1abe8fb94d4a5a6c073d89469ee636 (diff) | |
| download | bcm5719-llvm-48205982a3bc815d3619857ab7654322f1f0c973.tar.gz bcm5719-llvm-48205982a3bc815d3619857ab7654322f1f0c973.zip | |
Unwind: make it build on Darwin again
The support for the LSB eh_frame_hdr extension was overzealous in trying to
include headers. Be more careful to permit building on Darwin.
llvm-svn: 230837
Diffstat (limited to 'libcxxabi/src/Unwind/AddressSpace.hpp')
| -rw-r--r-- | libcxxabi/src/Unwind/AddressSpace.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libcxxabi/src/Unwind/AddressSpace.hpp b/libcxxabi/src/Unwind/AddressSpace.hpp index f9e64ae5df4..abcac41219a 100644 --- a/libcxxabi/src/Unwind/AddressSpace.hpp +++ b/libcxxabi/src/Unwind/AddressSpace.hpp @@ -55,11 +55,14 @@ struct EHTEntry { extern EHTEntry __exidx_start; extern EHTEntry __exidx_end; #endif // !defined(_LIBUNWIND_IS_BAREMETAL) +#endif // LIBCXXABI_ARM_EHABI -#elif _LIBUNWIND_SUPPORT_DWARF_UNWIND +#if defined(__linux__) +#if _LIBUNWIND_SUPPORT_DWARF_UNWIND && _LIBUNWIND_SUPPORT_DWARF_INDEX #include <link.h> #include "EHHeaderParser.hpp" -#endif // LIBCXXABI_ARM_EHABI +#endif +#endif namespace libunwind { |

