The canonical CPU variant for ARM according to config.guess uses a
authorJoerg Sonnenberger <joerg@bec.de>
Mon, 26 Jan 2015 11:41:48 +0000 (11:41 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Mon, 26 Jan 2015 11:41:48 +0000 (11:41 +0000)
commitd546b25ddbe88ec94fb97629e8bb7882a30ee64a
treea07f3754f39d4fb93efcfa44304c452cad9b6d05
parentc211591e17b89f190daaebacdfd954eb107ec01a
The canonical CPU variant for ARM according to config.guess uses a
suffix it seems:

    # ./config.guess
    earmv7hfeb-unknown-netbsd7.99.4

Extend the triple parsing to support this. Avoid running the ARM parser
multiple times because StringSwitch is not lazy.

Reviewers: Renato Golin, Tim Northover

Differential Revision: http://reviews.llvm.org/D7166

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