mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Darwin: update default iOS version to 5.0
Defaulting to iOS 3.0 when LLVM has to guess the version is no longer a useful option and can give surprising results (like tail calls being disabled). 5.0 seems like a reasonable compromise as a platform that's still interesting to some people. rdar://problem/15567348 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b72dc0e146
commit
9f84f21a4c
@ -600,15 +600,15 @@ void Triple::getiOSVersion(unsigned &Major, unsigned &Minor,
|
|||||||
// the clang driver combines OS X and IOS support into a common Darwin
|
// the clang driver combines OS X and IOS support into a common Darwin
|
||||||
// toolchain that wants to know the iOS version number even when targeting
|
// toolchain that wants to know the iOS version number even when targeting
|
||||||
// OS X.
|
// OS X.
|
||||||
Major = 3;
|
Major = 5;
|
||||||
Minor = 0;
|
Minor = 0;
|
||||||
Micro = 0;
|
Micro = 0;
|
||||||
break;
|
break;
|
||||||
case IOS:
|
case IOS:
|
||||||
getOSVersion(Major, Minor, Micro);
|
getOSVersion(Major, Minor, Micro);
|
||||||
// Default to 3.0.
|
// Default to 5.0.
|
||||||
if (Major == 0)
|
if (Major == 0)
|
||||||
Major = 3;
|
Major = 5;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -417,7 +417,7 @@ TEST(TripleTest, getOSVersion) {
|
|||||||
EXPECT_EQ((unsigned)5, Minor);
|
EXPECT_EQ((unsigned)5, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
T.getiOSVersion(Major, Minor, Micro);
|
T.getiOSVersion(Major, Minor, Micro);
|
||||||
EXPECT_EQ((unsigned)3, Major);
|
EXPECT_EQ((unsigned)5, Major);
|
||||||
EXPECT_EQ((unsigned)0, Minor);
|
EXPECT_EQ((unsigned)0, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
|
|
||||||
@ -432,7 +432,7 @@ TEST(TripleTest, getOSVersion) {
|
|||||||
EXPECT_EQ((unsigned)5, Minor);
|
EXPECT_EQ((unsigned)5, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
T.getiOSVersion(Major, Minor, Micro);
|
T.getiOSVersion(Major, Minor, Micro);
|
||||||
EXPECT_EQ((unsigned)3, Major);
|
EXPECT_EQ((unsigned)5, Major);
|
||||||
EXPECT_EQ((unsigned)0, Minor);
|
EXPECT_EQ((unsigned)0, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
|
|
||||||
@ -447,7 +447,7 @@ TEST(TripleTest, getOSVersion) {
|
|||||||
EXPECT_EQ((unsigned)4, Minor);
|
EXPECT_EQ((unsigned)4, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
T.getiOSVersion(Major, Minor, Micro);
|
T.getiOSVersion(Major, Minor, Micro);
|
||||||
EXPECT_EQ((unsigned)3, Major);
|
EXPECT_EQ((unsigned)5, Major);
|
||||||
EXPECT_EQ((unsigned)0, Minor);
|
EXPECT_EQ((unsigned)0, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
|
|
||||||
@ -462,7 +462,7 @@ TEST(TripleTest, getOSVersion) {
|
|||||||
EXPECT_EQ((unsigned)7, Minor);
|
EXPECT_EQ((unsigned)7, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
T.getiOSVersion(Major, Minor, Micro);
|
T.getiOSVersion(Major, Minor, Micro);
|
||||||
EXPECT_EQ((unsigned)3, Major);
|
EXPECT_EQ((unsigned)5, Major);
|
||||||
EXPECT_EQ((unsigned)0, Minor);
|
EXPECT_EQ((unsigned)0, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
|
|
||||||
@ -477,11 +477,11 @@ TEST(TripleTest, getOSVersion) {
|
|||||||
EXPECT_EQ((unsigned)4, Minor);
|
EXPECT_EQ((unsigned)4, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
T.getiOSVersion(Major, Minor, Micro);
|
T.getiOSVersion(Major, Minor, Micro);
|
||||||
EXPECT_EQ((unsigned)3, Major);
|
EXPECT_EQ((unsigned)5, Major);
|
||||||
EXPECT_EQ((unsigned)0, Minor);
|
EXPECT_EQ((unsigned)0, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
|
|
||||||
T = Triple("armv7-apple-ios5.0");
|
T = Triple("armv7-apple-ios7.0");
|
||||||
EXPECT_FALSE(T.isMacOSX());
|
EXPECT_FALSE(T.isMacOSX());
|
||||||
EXPECT_TRUE(T.isiOS());
|
EXPECT_TRUE(T.isiOS());
|
||||||
EXPECT_FALSE(T.isArch16Bit());
|
EXPECT_FALSE(T.isArch16Bit());
|
||||||
@ -492,7 +492,7 @@ TEST(TripleTest, getOSVersion) {
|
|||||||
EXPECT_EQ((unsigned)4, Minor);
|
EXPECT_EQ((unsigned)4, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
T.getiOSVersion(Major, Minor, Micro);
|
T.getiOSVersion(Major, Minor, Micro);
|
||||||
EXPECT_EQ((unsigned)5, Major);
|
EXPECT_EQ((unsigned)7, Major);
|
||||||
EXPECT_EQ((unsigned)0, Minor);
|
EXPECT_EQ((unsigned)0, Minor);
|
||||||
EXPECT_EQ((unsigned)0, Micro);
|
EXPECT_EQ((unsigned)0, Micro);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user