summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-20 15:44:33 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-20 15:44:33 +0000
commit8991d611fd7ab23dab483effe409a4c9b5865d63 (patch)
tree9849cdff39c6204737f563a9f4d37a2000abec2b /llvm/lib/Support
parent7d8895e7675b659c6c08a58bdf0dbea8cda17a3e (diff)
downloadbcm5719-llvm-8991d611fd7ab23dab483effe409a4c9b5865d63.tar.gz
bcm5719-llvm-8991d611fd7ab23dab483effe409a4c9b5865d63.zip
sys/Host: Change getHostTriple() to return the full Darwin version on OS X.
llvm-svn: 129852
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Unix/Host.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Support/Unix/Host.inc b/llvm/lib/Support/Unix/Host.inc
index ed74b675990..8cbec8cd7ee 100644
--- a/llvm/lib/Support/Unix/Host.inc
+++ b/llvm/lib/Support/Unix/Host.inc
@@ -87,10 +87,7 @@ std::string sys::getHostTriple() {
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;
OpenPOWER on IntegriCloud