[cfe-commits] r145453 - /cfe/trunk/lib/Driver/Tools.cpp
Akira Hatanaka
ahatanaka at mips.com
Tue Nov 29 15:09:24 PST 2011
Author: ahatanak
Date: Tue Nov 29 17:09:24 2011
New Revision: 145453
URL: http://llvm.org/viewvc/llvm-project?rev=145453&view=rev
Log:
Change processor names. Patch by Simon Atanasyan.
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=145453&r1=145452&r2=145453&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Tue Nov 29 17:09:24 2011
@@ -697,10 +697,10 @@
// Get default architecture.
static const char* getMipsArchFromCPU(StringRef CPUName) {
- if (CPUName == "mips32r1" || CPUName == "4ke")
+ if (CPUName == "mips32" || CPUName == "mips32r2")
return "mips";
- assert((CPUName == "mips64r1" || CPUName == "mips64r2") &&
+ assert((CPUName == "mips64" || CPUName == "mips64r2") &&
"Unexpected cpu name.");
return "mips64";
@@ -709,9 +709,9 @@
// Get default target cpu.
static const char* getMipsCPUFromArch(StringRef ArchName, const Driver &D) {
if (ArchName == "mips" || ArchName == "mipsel")
- return "mips32r1";
+ return "mips32";
else if (ArchName == "mips64" || ArchName == "mips64el")
- return "mips64r1";
+ return "mips64";
else
D.Diag(diag::err_drv_invalid_arch_name) << ArchName;
More information about the cfe-commits
mailing list