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)
commit609bf9236579a525f9446621f16e3d9bb6b2b4f6
tree1e5111939e911a8bd6bde35962fc5407dedfc2eb
parent6a3fd8361fcf385d1b85813cd2fc423417182030
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.

llvm-svn: 222129
llvm/lib/Support/Triple.cpp
llvm/test/CodeGen/ARM/invalid-target.ll [new file with mode: 0644]