]> granicus.if.org Git - clang/commitdiff
Use the triple directly, rather then getTriple().
authorChad Rosier <mcrosier@apple.com>
Wed, 9 May 2012 18:51:13 +0000 (18:51 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 9 May 2012 18:51:13 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156501 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index 12f292d55434d953ab5b294445592d0ad743c729..395d22ec6b750ff424a8d8d095dbf9764fad4459 100644 (file)
@@ -61,7 +61,7 @@ Darwin::Darwin(const Driver &D, const llvm::Triple& Triple)
   DarwinVersion[2] = 0;
 
   // Compute the initial iOS version from the triple
-  getTriple().getiOSVersion(Major, Minor, Micro);
+  Triple.getiOSVersion(Major, Minor, Micro);
   llvm::raw_string_ostream(iOSVersionMin)
     << Major << '.' << Minor << '.' << Micro;
 }