Properly conditionalize DwarfFDECache<A>::dyldUnloadHook. Patch by Patrick Wildt

llvm-svn: 206121
This commit is contained in:
Nick Kledzik 2014-04-12 22:11:11 +00:00
parent 34974ed503
commit 74ebf58742
1 changed files with 2 additions and 0 deletions

View File

@ -151,10 +151,12 @@ void DwarfFDECache<A>::removeAllIn(pint_t mh) {
_LIBUNWIND_LOG_NON_ZERO(::pthread_rwlock_unlock(&_lock));
}
#if __APPLE__
template <typename A>
void DwarfFDECache<A>::dyldUnloadHook(const struct mach_header *mh, intptr_t ) {
removeAllIn((pint_t) mh);
}
#endif
template <typename A>
void DwarfFDECache<A>::iterateCacheEntries(void (*func)(