]> granicus.if.org Git - llvm/commit
Merging r227085:
authorHans Wennborg <hans@hanshq.net>
Wed, 28 Jan 2015 23:46:57 +0000 (23:46 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 28 Jan 2015 23:46:57 +0000 (23:46 +0000)
commit32d3823d37bea1a7b59ba0f1042b4830bd295415
treec8f6eb5e7e4660a78c24bcc62d0a11ed956d03af
parent1eaeee865495b42e480bd00356b62fec5a8dc331
Merging r227085:
------------------------------------------------------------------------
r227085 | joerg | 2015-01-26 03:41:48 -0800 (Mon, 26 Jan 2015) | 13 lines

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/branches/release_36@227394 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Triple.cpp
unittests/ADT/TripleTest.cpp