forked from OSchip/llvm-project
[ObjectFileMachO] Check for TARGET_EMBEDDED instead of listing architectures.
Now that Apple Silicon is a thing, we need to generalize the check.
This commit is contained in:
parent
3c79212319
commit
63d597093c
|
@ -2596,8 +2596,7 @@ size_t ObjectFileMachO::ParseSymtab() {
|
||||||
typedef std::set<ConstString> IndirectSymbols;
|
typedef std::set<ConstString> IndirectSymbols;
|
||||||
IndirectSymbols indirect_symbol_names;
|
IndirectSymbols indirect_symbol_names;
|
||||||
|
|
||||||
#if defined(__APPLE__) && \
|
#if defined(__APPLE__) && TARGET_OS_EMBEDDED
|
||||||
(defined(__arm__) || defined(__arm64__) || defined(__aarch64__))
|
|
||||||
|
|
||||||
// Some recent builds of the dyld_shared_cache (hereafter: DSC) have been
|
// Some recent builds of the dyld_shared_cache (hereafter: DSC) have been
|
||||||
// optimized by moving LOCAL symbols out of the memory mapped portion of
|
// optimized by moving LOCAL symbols out of the memory mapped portion of
|
||||||
|
|
Loading…
Reference in New Issue