diff options
| author | Kelvin Li <kkwli0@gmail.com> | 2016-01-19 00:04:41 +0000 |
|---|---|---|
| committer | Kelvin Li <kkwli0@gmail.com> | 2016-01-19 00:04:41 +0000 |
| commit | 510498c0d3f548c0d572088db055d28f8b896b0e (patch) | |
| tree | 233c30dd0855c6a590b153d30eed04b3bf07197f /llvm/lib/Support | |
| parent | 0bc0c023875aecb054fdc2257530a34925c69bb8 (diff) | |
| download | bcm5719-llvm-510498c0d3f548c0d572088db055d28f8b896b0e.tar.gz bcm5719-llvm-510498c0d3f548c0d572088db055d28f8b896b0e.zip | |
parseArch() supports more variations of arch names for PowerPC builds
llvm-svn: 258103
Diffstat (limited to 'llvm/lib/Support')
| -rw-r--r-- | llvm/lib/Support/Triple.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index eafcef11d02..e8591ffe1f0 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -338,9 +338,9 @@ static Triple::ArchType parseArch(StringRef ArchName) { // FIXME: Do we need to support these? .Cases("i786", "i886", "i986", Triple::x86) .Cases("amd64", "x86_64", "x86_64h", Triple::x86_64) - .Case("powerpc", Triple::ppc) - .Cases("powerpc64", "ppu", Triple::ppc64) - .Case("powerpc64le", Triple::ppc64le) + .Cases("powerpc", "ppc32", Triple::ppc) + .Cases("powerpc64", "ppu", "ppc64", Triple::ppc64) + .Cases("powerpc64le", "ppc64le", Triple::ppc64le) .Case("xscale", Triple::arm) .Case("xscaleeb", Triple::armeb) .Case("aarch64", Triple::aarch64) @@ -359,7 +359,7 @@ static Triple::ArchType parseArch(StringRef ArchName) { .Case("r600", Triple::r600) .Case("amdgcn", Triple::amdgcn) .Case("hexagon", Triple::hexagon) - .Case("s390x", Triple::systemz) + .Cases("s390x", "systemz", Triple::systemz) .Case("sparc", Triple::sparc) .Case("sparcel", Triple::sparcel) .Cases("sparcv9", "sparc64", Triple::sparcv9) |

