diff options
author | Hans Wennborg <hans@hanshq.net> | 2016-02-16 21:46:52 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2016-02-16 21:46:52 +0000 |
commit | 7498a328bb01bc40f21dc3728dd1260e51bb338b (patch) | |
tree | 919d21f5e296aa89cbae8ec9b1dfb2b70185d145 | |
parent | eee3353aecf791f2edee1b1ae8a203a2cea29f5e (diff) | |
download | llvm-7498a328bb01bc40f21dc3728dd1260e51bb338b.tar.gz |
Merging r258103:
------------------------------------------------------------------------
r258103 | kli | 2016-01-18 16:04:41 -0800 (Mon, 18 Jan 2016) | 2 lines
parseArch() supports more variations of arch names for PowerPC builds
------------------------------------------------------------------------
llvm-svn: 261015
-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 0e5d3ac50379..11afcf7f0adc 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) |