mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 13:10:34 +00:00
Yikes. This requires checking apple gcc version.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8a67f6e848
commit
5f271aff5c
@ -32,7 +32,8 @@ using namespace llvm;
|
|||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <AvailabilityMacros.h>
|
#include <AvailabilityMacros.h>
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
|
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4 && \
|
||||||
|
__APPLE_CC__ >= 5330
|
||||||
// __dso_handle is resolved by Mac OS X dynamic linker.
|
// __dso_handle is resolved by Mac OS X dynamic linker.
|
||||||
extern void *__dso_handle __attribute__ ((__visibility__ ("hidden")));
|
extern void *__dso_handle __attribute__ ((__visibility__ ("hidden")));
|
||||||
#endif
|
#endif
|
||||||
@ -309,7 +310,8 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) {
|
|||||||
// If the global is external, just remember the address.
|
// If the global is external, just remember the address.
|
||||||
if (GV->isExternal()) {
|
if (GV->isExternal()) {
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
|
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_4 && \
|
||||||
|
__APPLE_CC__ >= 5330
|
||||||
// __dso_handle is resolved by the Mac OS X dynamic linker.
|
// __dso_handle is resolved by the Mac OS X dynamic linker.
|
||||||
if (GV->getName() == "__dso_handle")
|
if (GV->getName() == "__dso_handle")
|
||||||
return (void*)&__dso_handle;
|
return (void*)&__dso_handle;
|
||||||
|
Loading…
Reference in New Issue
Block a user