summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-10-11 21:34:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-10-11 21:34:24 +0000
commitfe2a89683a2705e3af108ae0348328146991742c (patch)
tree815d21ec249fcf6c2ef9b15a8cda7dbdfc836e57
parent11ced671be20cecb1c0aca68af4f7e32418917e6 (diff)
downloadbcm5719-llvm-fe2a89683a2705e3af108ae0348328146991742c.tar.gz
bcm5719-llvm-fe2a89683a2705e3af108ae0348328146991742c.zip
Change explicit search Apple specific code to only reference __eprintf on x86.
llvm-svn: 116239
-rw-r--r--llvm/lib/System/SearchForAddressOfSpecialSymbol.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/llvm/lib/System/SearchForAddressOfSpecialSymbol.cpp b/llvm/lib/System/SearchForAddressOfSpecialSymbol.cpp
index 2fcc3401c36..51ba417c214 100644
--- a/llvm/lib/System/SearchForAddressOfSpecialSymbol.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud