From 9868d71ffed33d15cf922a4e242fc8d94a286d61 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Thu, 9 Oct 2014 05:43:30 +0000 Subject: Use triple's isiOS() and isOSDarwin() methods. These methods are already used in lots of places. This makes things more consistent. NFC. llvm-svn: 219386 --- llvm/lib/Target/TargetLibraryInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/TargetLibraryInfo.cpp') diff --git a/llvm/lib/Target/TargetLibraryInfo.cpp b/llvm/lib/Target/TargetLibraryInfo.cpp index 7ca5c74e935..ecb38198551 100644 --- a/llvm/lib/Target/TargetLibraryInfo.cpp +++ b/llvm/lib/Target/TargetLibraryInfo.cpp @@ -352,7 +352,7 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] = static bool hasSinCosPiStret(const Triple &T) { // Only Darwin variants have _stret versions of combined trig functions. - if (!T.isMacOSX() && T.getOS() != Triple::IOS) + if (!T.isOSDarwin()) return false; // The ABI is rather complicated on x86, so don't do anything special there. @@ -362,7 +362,7 @@ static bool hasSinCosPiStret(const Triple &T) { if (T.isMacOSX() && T.isMacOSXVersionLT(10, 9)) return false; - if (T.getOS() == Triple::IOS && T.isOSVersionLT(7, 0)) + if (T.isiOS() && T.isOSVersionLT(7, 0)) return false; return true; -- cgit v1.2.3