summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2016-10-20 20:13:35 +0000
committerMichal Gorny <mgorny@gentoo.org>2016-10-20 20:13:35 +0000
commit0a2cd96e0527a1eb647016b32b13e9b98de6791a (patch)
treef3408b52ea0578b1e0a6debe8026fba2bc570c35 /llvm/lib/Transforms/Utils
parentc8bb42283ee6a118219593a2c98abc0974eb5dc4 (diff)
downloadbcm5719-llvm-0a2cd96e0527a1eb647016b32b13e9b98de6791a.tar.gz
bcm5719-llvm-0a2cd96e0527a1eb647016b32b13e9b98de6791a.zip
[Driver] Parse Debian version as integer when possible. NFC
Replace the string matching for /etc/debian_version with split integer/string matching algorithm. When the file contains 'major.minor' version number, parse the major version as integer and use a switch clause to match it. Otherwise, attempt 'codename/sid' matching using a StringSwitch. Differential Revision: https://reviews.llvm.org/D25696 llvm-svn: 284770
Diffstat (limited to 'llvm/lib/Transforms/Utils')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud