[llvm-commits] [llvm] r156492 - /llvm/trunk/lib/Support/Triple.cpp

Chad Rosier mcrosier at apple.com
Wed May 9 11:23:00 PDT 2012


Author: mcrosier
Date: Wed May  9 13:23:00 2012
New Revision: 156492

URL: http://llvm.org/viewvc/llvm-project?rev=156492&view=rev
Log:
Set the default iOS version to 3.0.

Modified:
    llvm/trunk/lib/Support/Triple.cpp

Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=156492&r1=156491&r2=156492&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Wed May  9 13:23:00 2012
@@ -606,13 +606,15 @@
     // 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;
   }
 }





More information about the llvm-commits mailing list