Make Triple::parseARMArch use ARMTargetParser
authorRenato Golin <renato.golin@linaro.org>
Thu, 21 May 2015 13:52:20 +0000 (13:52 +0000)
committerRenato Golin <renato.golin@linaro.org>
Thu, 21 May 2015 13:52:20 +0000 (13:52 +0000)
commitb6ea67e0277ba554eb61fc864c5b828d4b0c0f89
treef68a6424b65ab6ceee89caa87fabbbd258d78759
parent897d9bccdcde5348ffea6353370c93a64a8ad5b6
Make Triple::parseARMArch use ARMTargetParser

Simplifying Triple::parseARMArch, leaving all the parsing to ARMTargetParser.

This commit also adds AArch64 detection to ARMTargetParser canonicalization,
and a two RedHat arch names (v{6,7}hl, meaning hard-float / little-endian).

Adding enough unit tests to cover the basics. Clang checks fine.

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