[ADT] Add Triple::getEnvironmentVersion
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 1 Jun 2015 23:38:09 +0000 (23:38 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 1 Jun 2015 23:38:09 +0000 (23:38 +0000)
commit3fcfa4873ac56fd189cb0dde1441e12e8f7071fa
tree2167128fa927bd2f1da21e57dbf40825cf8e5ba7
parentd421582e907886a10155191bcd9f81c31317f546
[ADT] Add Triple::getEnvironmentVersion

This allows us to extract version numbers from the environment.
getOSVersion is currently overloaded for that purpose, this allows us to
clean it up.

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