diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-10-11 21:34:24 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-10-11 21:34:24 +0000 |
commit | 1086c2b5daf0f7fc9b003f86f3726050672c5a80 (patch) | |
tree | bd759ea4415f26757ec224fff2b96a85eff5c903 | |
parent | 1a7233f9d08b20076ca71f7d95c673fd641b9c35 (diff) | |
download | llvm-1086c2b5daf0f7fc9b003f86f3726050672c5a80.tar.gz llvm-1086c2b5daf0f7fc9b003f86f3726050672c5a80.tar.bz2 llvm-1086c2b5daf0f7fc9b003f86f3726050672c5a80.tar.xz |
Change explicit search Apple specific code to only reference __eprintf on x86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116239 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/System/SearchForAddressOfSpecialSymbol.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/System/SearchForAddressOfSpecialSymbol.cpp b/lib/System/SearchForAddressOfSpecialSymbol.cpp index 2fcc3401c3..51ba417c21 100644 --- a/lib/System/SearchForAddressOfSpecialSymbol.cpp +++ b/lib/System/SearchForAddressOfSpecialSymbol.cpp @@ -32,14 +32,6 @@ static void *DoSearch(const char* symbolName) { EXPLICIT_SYMBOL(__ashrdi3); EXPLICIT_SYMBOL(__cmpdi2); EXPLICIT_SYMBOL(__divdi3); - - // Clang doesn't always link against libgcc.a, which is the only thing which - // defines ___eprintf in the modern world. Just don't attempt to export this - // symbol when building with Clang. -#ifndef __clang__ - EXPLICIT_SYMBOL(__eprintf); -#endif - EXPLICIT_SYMBOL(__fixdfdi); EXPLICIT_SYMBOL(__fixsfdi); EXPLICIT_SYMBOL(__fixunsdfdi); @@ -50,6 +42,11 @@ static void *DoSearch(const char* symbolName) { EXPLICIT_SYMBOL(__moddi3); EXPLICIT_SYMBOL(__udivdi3); EXPLICIT_SYMBOL(__umoddi3); + + // __eprintf is sometimes used for assert() handling on x86. +#ifdef __i386__ + EXPLICIT_SYMBOL(__eprintf); +#endif } #endif |