summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-05-09 18:23:00 +0000
committerChad Rosier <mcrosier@apple.com>2012-05-09 18:23:00 +0000
commit9d7b1cee3959ca78cf743ee4306bfee283a37544 (patch)
tree81759d2a8fa1d03a440fd66e9eb1053d616075f4 /llvm/lib/Support
parentd966e723f742107e453e4df2a91bb51e16d9ddb8 (diff)
downloadbcm5719-llvm-9d7b1cee3959ca78cf743ee4306bfee283a37544.tar.gz
bcm5719-llvm-9d7b1cee3959ca78cf743ee4306bfee283a37544.zip
Set the default iOS version to 3.0.
llvm-svn: 156492
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Triple.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index efa2df32657..868aa570182 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -606,13 +606,15 @@ void Triple::getiOSVersion(unsigned &Major, unsigned &Minor,
// 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
// OS X.
- Major = 0;
+ Major = 3;
Minor = 0;
Micro = 0;
break;
case IOS:
getOSVersion(Major, Minor, Micro);
- // Default to 0.0.
+ // Default to 3.0.
+ if (Major == 0)
+ Major = 3;
break;
}
}
OpenPOWER on IntegriCloud