[llvm] r213896 - Target: invert condition for Windows

Saleem Abdulrasool compnerd at compnerd.org
Thu Jul 24 15:09:06 PDT 2014


Author: compnerd
Date: Thu Jul 24 17:09:06 2014
New Revision: 213896

URL: http://llvm.org/viewvc/llvm-project?rev=213896&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/Target/TargetLibraryInfo.cpp

Modified: llvm/trunk/lib/Target/TargetLibraryInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLibraryInfo.cpp?rev=213896&r1=213895&r2=213896&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLibraryInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetLibraryInfo.cpp Thu Jul 24 17:09:06 2014
@@ -426,7 +426,7 @@ static void initialize(TargetLibraryInfo
     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);





More information about the llvm-commits mailing list