]> granicus.if.org Git - clang/commitdiff
Adjust to api change.
authorChris Lattner <sabre@nondot.org>
Thu, 22 Jan 2009 20:57:52 +0000 (20:57 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 22 Jan 2009 20:57:52 +0000 (20:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62785 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index 900e0a03905bb000cb6425dafe486eb36de4503d..9d28720ce2d175d938bbdaf8a26a30d6c6032f41 100644 (file)
@@ -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('.'));
     }
   }