From 592d26eafab66ba6288c09b66068c67ab2764c35 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Tue, 29 Nov 2011 23:09:24 +0000 Subject: [PATCH] Change processor names. Patch by Simon Atanasyan. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145453 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Tools.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 6ceb4b8a09..04c77c00be 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -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; -- 2.40.0