Target: invert condition for Windows

The Microsoft ABI and MSVCRT are considered the canonical C runtime and ABI.
The long double routines are not part of this environment.  However, cygwin and
MinGW both provide supplementary implementations.  Change the condition to
reflect this reality.

llvm-svn: 213896
This commit is contained in:
Saleem Abdulrasool 2014-07-24 22:09:06 +00:00
parent 4d189fb9a6
commit 8dc8fb18d8
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T,
TLI.setUnavailable(LibFunc::fiprintf);
}
if (T.isKnownWindowsMSVCEnvironment() || T.isWindowsItaniumEnvironment()) {
if (T.isOSWindows() && !T.isOSCygMing()) {
// Win32 does not support long double
TLI.setUnavailable(LibFunc::acosl);
TLI.setUnavailable(LibFunc::asinl);