aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-22 20:57:52 +0000
committerChris Lattner <sabre@nondot.org>2009-01-22 20:57:52 +0000
commita05ff45ca2941be7ab848940fe03e32fba8346bf (patch)
tree05ed7c3ce6ebda6d420aee4273840d31511856fa
parentf9e96843e8a0afd0d5f58ba224fb8d57cba8effa (diff)
Adjust to api change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62785 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Driver/clang.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 900e0a0390..9d28720ce2 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -833,7 +833,7 @@ static std::string CreateTargetTriple() {
Triple.resize(DarwinDashIdx + strlen("-darwin"));
// Only add the major part of the os version.
- std::string Version = llvm::sys::osVersion();
+ std::string Version = llvm::sys::getOSVersion();
Triple += Version.substr(0, Version.find('.'));
}
}