[llvm-commits] [llvm] r114165 - /llvm/trunk/lib/System/SearchForAddressOfSpecialSymbol.cpp
Daniel Dunbar
daniel at zuster.org
Thu Sep 16 21:25:24 PDT 2010
Author: ddunbar
Date: Thu Sep 16 23:25:24 2010
New Revision: 114165
URL: http://llvm.org/viewvc/llvm-project?rev=114165&view=rev
Log:
System: Don't reexport ___eprintf when building with Clang; this symbol isn't
used on Darwin anymore, and Clang might not always link with the library it is
currently found in.
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=114165&r1=114164&r2=114165&view=diff
==============================================================================
--- llvm/trunk/lib/System/SearchForAddressOfSpecialSymbol.cpp (original)
+++ llvm/trunk/lib/System/SearchForAddressOfSpecialSymbol.cpp Thu Sep 16 23:25:24 2010
@@ -32,7 +32,14 @@
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);
More information about the llvm-commits
mailing list