diff options
author | Bob Wilson <bob.wilson@apple.com> | 2013-11-03 07:06:29 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2013-11-03 07:06:29 +0000 |
commit | f7e6f383d9c661ccbcd986fc1478336f57f4ce7c (patch) | |
tree | bd4c752eb8b566a8cfbcf819651befd7896f6dc9 /lib | |
parent | e4f9f8a1296768a7a6b6646a3b241a379f4a5e15 (diff) | |
download | compiler-rt-f7e6f383d9c661ccbcd986fc1478336f57f4ce7c.tar.gz compiler-rt-f7e6f383d9c661ccbcd986fc1478336f57f4ce7c.tar.bz2 compiler-rt-f7e6f383d9c661ccbcd986fc1478336f57f4ce7c.tar.xz |
Push back various changes for building Apple's compiler-rt dylib.
These changes had accumulated internally at Apple for no good reason.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/apple_versioning.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/lib/apple_versioning.c b/lib/apple_versioning.c index 09f149f1..3797a1ab 100644 --- a/lib/apple_versioning.c +++ b/lib/apple_versioning.c @@ -9,19 +9,20 @@ */ - #if __APPLE__ - #if __arm__ + #include <Availability.h> + + #if __IPHONE_OS_VERSION_MIN_REQUIRED #define NOT_HERE_BEFORE_10_6(sym) - #define NOT_HERE_IN_10_8_AND_EARLIER(sym) - #elif __ppc__ - #define NOT_HERE_BEFORE_10_6(sym) \ - extern const char sym##_tmp3 __asm("$ld$hide$os10.3$_" #sym ); \ - __attribute__((visibility("default"))) const char sym##_tmp3 = 0; \ - extern const char sym##_tmp4 __asm("$ld$hide$os10.4$_" #sym ); \ - __attribute__((visibility("default"))) const char sym##_tmp4 = 0; \ - extern const char sym##_tmp5 __asm("$ld$hide$os10.5$_" #sym ); \ - __attribute__((visibility("default"))) const char sym##_tmp5 = 0; + #define NOT_HERE_IN_10_8_AND_EARLIER(sym) \ + extern const char sym##_tmp61 __asm("$ld$hide$os6.1$_" #sym ); \ + __attribute__((visibility("default"))) const char sym##_tmp61 = 0; \ + extern const char sym##_tmp60 __asm("$ld$hide$os6.0$_" #sym ); \ + __attribute__((visibility("default"))) const char sym##_tmp60 = 0; \ + extern const char sym##_tmp51 __asm("$ld$hide$os5.1$_" #sym ); \ + __attribute__((visibility("default"))) const char sym##_tmp51 = 0; \ + extern const char sym##_tmp50 __asm("$ld$hide$os5.0$_" #sym ); \ + __attribute__((visibility("default"))) const char sym##_tmp50 = 0; #else #define NOT_HERE_BEFORE_10_6(sym) \ extern const char sym##_tmp4 __asm("$ld$hide$os10.4$_" #sym ); \ @@ -35,7 +36,7 @@ __attribute__((visibility("default"))) const char sym##_tmp7 = 0; \ extern const char sym##_tmp6 __asm("$ld$hide$os10.6$_" #sym ); \ __attribute__((visibility("default"))) const char sym##_tmp6 = 0; - #endif /* __ppc__ */ + #endif /* Symbols in libSystem.dylib in 10.6 and later, |