Reinforce ARMTargetParser::getCanonicalArchName validation
authorRenato Golin <renato.golin@linaro.org>
Fri, 22 May 2015 20:43:30 +0000 (20:43 +0000)
committerRenato Golin <renato.golin@linaro.org>
Fri, 22 May 2015 20:43:30 +0000 (20:43 +0000)
commit0ceb20d6f46f6e5b54fa36f792cdc6a252e6edc6
tree896318d74e8e27c377ba499c2a74abdca12f0496
parent157fbac5345c27be648d50cd7d50b7e63e73cced
Reinforce ARMTargetParser::getCanonicalArchName validation

Before, getCanonicalArchName was relying on parseArch() to validate the arch
name, which was a problem when other methods, that also needed to call it,
were duplicating the steps.

But to dissociate getCanonicalArchName from parseArch, we needed to make
getCanonicalArchName more robust in detecting valid arch names. It's still
not perfect, but will do for the time being, until we merge Triple with
TargetParser into a TargetDescription mega class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238047 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/TargetParser.cpp