mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00:00
Trivial cleanup to group the generic 'armvN' cases with the 'arm' case,
etc. No functionality changed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@150867 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c3acb0e27
commit
0a85771de8
@ -219,10 +219,6 @@ const char *Triple::getArchNameForAssembler() {
|
|||||||
|
|
||||||
Triple::ArchType Triple::ParseArch(StringRef ArchName) {
|
Triple::ArchType Triple::ParseArch(StringRef ArchName) {
|
||||||
return StringSwitch<ArchType>(ArchName)
|
return StringSwitch<ArchType>(ArchName)
|
||||||
// FIXME: It would be good to replace these with explicit names for all the
|
|
||||||
// various suffixes supported.
|
|
||||||
.StartsWith("armv", arm)
|
|
||||||
.StartsWith("thumbv", thumb)
|
|
||||||
.Cases("i386", "i486", "i586", "i686", x86)
|
.Cases("i386", "i486", "i586", "i686", x86)
|
||||||
.Cases("i786", "i886", "i986", x86) // FIXME: Do we need to support these?
|
.Cases("i786", "i886", "i986", x86) // FIXME: Do we need to support these?
|
||||||
.Cases("amd64", "x86_64", x86_64)
|
.Cases("amd64", "x86_64", x86_64)
|
||||||
@ -230,7 +226,11 @@ Triple::ArchType Triple::ParseArch(StringRef ArchName) {
|
|||||||
.Cases("powerpc64", "ppu", ppc64)
|
.Cases("powerpc64", "ppu", ppc64)
|
||||||
.Case("mblaze", mblaze)
|
.Case("mblaze", mblaze)
|
||||||
.Cases("arm", "xscale", arm)
|
.Cases("arm", "xscale", arm)
|
||||||
|
// FIXME: It would be good to replace these with explicit names for all the
|
||||||
|
// various suffixes supported.
|
||||||
|
.StartsWith("armv", arm)
|
||||||
.Case("thumb", thumb)
|
.Case("thumb", thumb)
|
||||||
|
.StartsWith("thumbv", thumb)
|
||||||
.Cases("spu", "cellspu", cellspu)
|
.Cases("spu", "cellspu", cellspu)
|
||||||
.Case("msp430", msp430)
|
.Case("msp430", msp430)
|
||||||
.Cases("mips", "mipseb", "mipsallegrex", mips)
|
.Cases("mips", "mipseb", "mipsallegrex", mips)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user