<div class="gmail_quote">On Wed, May 9, 2012 at 11:23 AM, Chad Rosier <span dir="ltr"><<a href="mailto:mcrosier@apple.com" target="_blank">mcrosier@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Author: mcrosier<br>
Date: Wed May  9 13:23:00 2012<br>
New Revision: 156492<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=156492&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=156492&view=rev</a><br>
Log:<br>
Set the default iOS version to 3.0.<br></blockquote><div><br></div><div>Unittest for this?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Modified:<br>
    llvm/trunk/lib/Support/Triple.cpp<br>
<br>
Modified: llvm/trunk/lib/Support/Triple.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=156492&r1=156491&r2=156492&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=156492&r1=156491&r2=156492&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/lib/Support/Triple.cpp (original)<br>
+++ llvm/trunk/lib/Support/Triple.cpp Wed May  9 13:23:00 2012<br>
@@ -606,13 +606,15 @@<br>
     // the clang driver combines OS X and IOS support into a common Darwin<br>
     // toolchain that wants to know the iOS version number even when targeting<br>
     // OS X.<br>
-    Major = 0;<br>
+    Major = 3;<br>
     Minor = 0;<br>
     Micro = 0;<br>
     break;<br>
   case IOS:<br>
     getOSVersion(Major, Minor, Micro);<br>
-    // Default to 0.0.<br>
+    // Default to 3.0.<br>
+    if (Major == 0)<br>
+      Major = 3;<br>
     break;<br>
   }<br>
 }<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br>