Add support for more archs in `Triple::getArchTypeForLLVMName`

Add support for i386, s390x in Triple::getArchTypeForLLVMName.

Differential Revision: https://reviews.llvm.org/D122003
This commit is contained in:
Antonio Frighetto 2022-04-06 10:01:05 +01:00 committed by Renato Golin
parent 153431ec7a
commit 060ff66337
1 changed files with 2 additions and 0 deletions

View File

@ -337,12 +337,14 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) {
.Case("sparc", sparc)
.Case("sparcel", sparcel)
.Case("sparcv9", sparcv9)
.Case("s390x", systemz)
.Case("systemz", systemz)
.Case("tce", tce)
.Case("tcele", tcele)
.Case("thumb", thumb)
.Case("thumbeb", thumbeb)
.Case("x86", x86)
.Case("i386", x86)
.Case("x86-64", x86_64)
.Case("xcore", xcore)
.Case("nvptx", nvptx)