Add Triple::getMacOSXVersion to replace crufty code in the clang driver.
authorBob Wilson <bob.wilson@apple.com>
Tue, 31 Jan 2012 22:32:29 +0000 (22:32 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 31 Jan 2012 22:32:29 +0000 (22:32 +0000)
commitbda59fdd71033a8ddfa30ec4b514753017f3da5c
treeda934da5f8fe784ca9772a8f8d5b4c5a6cfeb9db
parented2d17b2d4ae20a83304357d6c84ed10e88bc036
Add Triple::getMacOSXVersion to replace crufty code in the clang driver.

This new function provides a way to get the Mac OS X version number from
either generic "darwin" triples of macosx triples.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149438 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Triple.h
lib/Support/Triple.cpp