[llvm-commits] [llvm] r129852 - /llvm/trunk/lib/Support/Unix/Host.inc

Daniel Dunbar daniel at zuster.org
Wed Apr 20 08:44:33 PDT 2011


Author: ddunbar
Date: Wed Apr 20 10:44:33 2011
New Revision: 129852

URL: http://llvm.org/viewvc/llvm-project?rev=129852&view=rev
Log:
sys/Host: Change getHostTriple() to return the full Darwin version on OS X.

Modified:
    llvm/trunk/lib/Support/Unix/Host.inc

Modified: llvm/trunk/lib/Support/Unix/Host.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Host.inc?rev=129852&r1=129851&r2=129852&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Host.inc (original)
+++ llvm/trunk/lib/Support/Unix/Host.inc Wed Apr 20 10:44:33 2011
@@ -87,10 +87,7 @@
   std::string::size_type DarwinDashIdx = Triple.find("-darwin");
   if (DarwinDashIdx != std::string::npos) {
     Triple.resize(DarwinDashIdx + strlen("-darwin"));
-
-    // Only add the major part of the os version.
-    std::string Version = getOSVersion();
-    Triple += Version.substr(0, Version.find('.'));
+    Triple += getOSVersion();
   }
 
   return Triple;





More information about the llvm-commits mailing list