Fix ARM triple parsing
authorRenato Golin <renato.golin@linaro.org>
Mon, 17 Nov 2014 14:08:57 +0000 (14:08 +0000)
committerRenato Golin <renato.golin@linaro.org>
Mon, 17 Nov 2014 14:08:57 +0000 (14:08 +0000)
commit18e5ce01881041db078312a2dd875cc89deb2c25
tree5d6d60585504df0e3de429ee64bdd239cd8f5481
parent2014c91510d124fbdbd993074ab023f21f614a55
Fix ARM triple parsing

The triple parser should only accept existing architecture names
when the triple starts with armv, armebv, thumbv or thumbebv.

Patch by Gabor Ballabas.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222129 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Triple.cpp
test/CodeGen/ARM/invalid-target.ll [new file with mode: 0644]