aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/TargetLibraryInfo.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2013-12-15 20:36:17 +0000
committerJoerg Sonnenberger <joerg@bec.de>2013-12-15 20:36:17 +0000
commitddb582896a45ef8a0ba1f4a02ebb953ae7e46a97 (patch)
treec02862ddff2741d1d3142a7ce83f3f8b52e128f9 /llvm/lib/Target/TargetLibraryInfo.cpp
parentee4b398828a2a1f154cee207215f2a3182c013a2 (diff)
downloadllvm-ddb582896a45ef8a0ba1f4a02ebb953ae7e46a97.zip
llvm-ddb582896a45ef8a0ba1f4a02ebb953ae7e46a97.tar.gz
llvm-ddb582896a45ef8a0ba1f4a02ebb953ae7e46a97.tar.bz2
There is no exp10 on NetBSD.
llvm-svn: 197348
Diffstat (limited to 'llvm/lib/Target/TargetLibraryInfo.cpp')
-rw-r--r--llvm/lib/Target/TargetLibraryInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetLibraryInfo.cpp b/llvm/lib/Target/TargetLibraryInfo.cpp
index 7535620..2a9fb35 100644
--- a/llvm/lib/Target/TargetLibraryInfo.cpp
+++ b/llvm/lib/Target/TargetLibraryInfo.cpp
@@ -426,6 +426,12 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T,
}
}
+ if (T.getOS() == Triple::NetBSD) {
+ TLI.setUnavailable(LibFunc::exp10l);
+ TLI.setUnavailable(LibFunc::exp10);
+ TLI.setUnavailable(LibFunc::exp10f);
+ }
+
// iprintf and friends are only available on XCore and TCE.
if (T.getArch() != Triple::xcore && T.getArch() != Triple::tce) {
TLI.setUnavailable(LibFunc::iprintf);