[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)
commitaac4ea01236e74a54e5119cd06a72816540422e7
treef278e43b95a7dc9071cd986dd8e06ead439c7085
parente20dc1cd3ac696805b7e57402d5d8d7129873cde
[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.

llvm-svn: 238796
llvm/include/llvm/ADT/Triple.h
llvm/lib/Support/Triple.cpp