diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-02-18 04:34:17 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-02-18 04:34:17 +0000 |
commit | b54950bef4aa209eca79eb065f0d9aef43705de0 (patch) | |
tree | ff707facbf9c030737e4a3c3d05468977c882dda /llvm/lib/Support | |
parent | eec915d6864110d93e5ab1fdba7cfe4aaa4a2e88 (diff) | |
download | bcm5719-llvm-b54950bef4aa209eca79eb065f0d9aef43705de0.tar.gz bcm5719-llvm-b54950bef4aa209eca79eb065f0d9aef43705de0.zip |
Trivial cleanup to group the generic 'armvN' cases with the 'arm' case,
etc. No functionality changed.
llvm-svn: 150867
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 14e9f5bbfcf..9621dd31f16 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -219,10 +219,6 @@ const char *Triple::getArchNameForAssembler() { Triple::ArchType Triple::ParseArch(StringRef 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("i786", "i886", "i986", x86) // FIXME: Do we need to support these? .Cases("amd64", "x86_64", x86_64) @@ -230,7 +226,11 @@ Triple::ArchType Triple::ParseArch(StringRef ArchName) { .Cases("powerpc64", "ppu", ppc64) .Case("mblaze", mblaze) .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) + .StartsWith("thumbv", thumb) .Cases("spu", "cellspu", cellspu) .Case("msp430", msp430) .Cases("mips", "mipseb", "mipsallegrex", mips) |