summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp')
-rw-r--r--llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp b/llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp
index 51ba417c214..d63830185c3 100644
--- a/llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp
+++ b/llvm/lib/Support/SearchForAddressOfSpecialSymbol.cpp
@@ -44,9 +44,14 @@ 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
OpenPOWER on IntegriCloud