Change processor names. Patch by Simon Atanasyan.

llvm-svn: 145453
This commit is contained in:
Akira Hatanaka 2011-11-29 23:09:24 +00:00
parent f50d2eafdb
commit a21f5dab3c
1 changed files with 4 additions and 4 deletions

View File

@ -697,10 +697,10 @@ void Clang::AddARMTargetArgs(const ArgList &Args,
// 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 @@ static const char* getMipsArchFromCPU(StringRef CPUName) {
// 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;