Disable calls to *_finite and other glibc-only functions on Musl.
authorEli Friedman <efriedma@codeaurora.org>
Tue, 6 Nov 2018 18:23:32 +0000 (18:23 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Tue, 6 Nov 2018 18:23:32 +0000 (18:23 +0000)
commite3a5fc6d80ce33a22e62e731996e75e485c53480
treec7be0f201069407c6d136527c276f36ed9c06595
parent786760a9f6e6f92088aeafae5f06de092e9fc4df
Disable calls to *_finite and other glibc-only functions on Musl.

Non-GNU environments don't have __finite_*, so treat them as
unavailable.

Differential Revision: https://reviews.llvm.org/D51282

llvm-svn: 346250
llvm/lib/Analysis/TargetLibraryInfo.cpp
llvm/test/Transforms/ConstProp/calls-math-finite.ll
llvm/test/Transforms/InferFunctionAttrs/annotate.ll