build: Go back to dropping __eprintf reference when building with Clang, see
authorDaniel Dunbar <daniel@zuster.org>
Tue, 7 Dec 2010 16:29:44 +0000 (16:29 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 7 Dec 2010 16:29:44 +0000 (16:29 +0000)
comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121146 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/SearchForAddressOfSpecialSymbol.cpp

index 51ba417c21445abd219e31e5483e3f236b61917a..d63830185c32fa493c15368d4b94c277286ab3a3 100644 (file)
@@ -44,8 +44,13 @@ static void *DoSearch(const char* symbolName) {
     EXPLICIT_SYMBOL(__umoddi3);
 
     // __eprintf is sometimes used for assert() handling on x86.
+    //
+    // FIXME: Currently disabled when using Clang, as we don't always have our
+    // runtime support libraries available.
+#ifndef __clang__
 #ifdef __i386__
     EXPLICIT_SYMBOL(__eprintf);
+#endif
 #endif
   }
 #endif