[llvm-commits] [llvm] r116239 - /llvm/trunk/lib/System/SearchForAddressOfSpecialSymbol.cpp
Daniel Dunbar
daniel at zuster.org
Mon Oct 11 14:34:24 PDT 2010
Author: ddunbar
Date: Mon Oct 11 16:34:24 2010
New Revision: 116239
URL: http://llvm.org/viewvc/llvm-project?rev=116239&view=rev
Log:
Change explicit search Apple specific code to only reference __eprintf on x86.
Modified:
llvm/trunk/lib/System/SearchForAddressOfSpecialSymbol.cpp
Modified: llvm/trunk/lib/System/SearchForAddressOfSpecialSymbol.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/SearchForAddressOfSpecialSymbol.cpp?rev=116239&r1=116238&r2=116239&view=diff
==============================================================================
--- llvm/trunk/lib/System/SearchForAddressOfSpecialSymbol.cpp (original)
+++ llvm/trunk/lib/System/SearchForAddressOfSpecialSymbol.cpp Mon Oct 11 16:34:24 2010
@@ -32,14 +32,6 @@
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 @@
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
More information about the llvm-commits
mailing list