llvm.org GIT mirror llvm / 13fb3b5
Target: Eliminate a use of getDarwinMajorNumber(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129803 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 9 years ago
1 changed file(s) with 8 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2727
2828
2929 // memset_pattern16 is only available on iOS 3.0 and Mac OS/X 10.5 and later.
30 if (T.getOS() != Triple::Darwin || T.getDarwinMajorNumber() < 9)
30 if (T.isOSX()) {
31 if (T.isOSXVersionLT(10, 5))
32 TLI.setUnavailable(LibFunc::memset_pattern16);
33 } else if (T.getOS() == Triple::IOS) {
34 if (T.isOSVersionLT(3, 0))
35 TLI.setUnavailable(LibFunc::memset_pattern16);
36 } else {
3137 TLI.setUnavailable(LibFunc::memset_pattern16);
38 }
3239
3340 // iprintf and friends are only available on XCore.
3441 if (T.getArch() != Triple::xcore) {