From d03bbab58e335b7453f2433fc661284dea664221 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Tue, 26 May 2020 15:54:15 +0300 Subject: ProjectExplorer: Add support for new R32C architecture This commit adds new ProjectExplorer::Abi::R32CArchitecture entry for the Renesas R32C architecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html Change-Id: I869dd07783355b01522ca9eb87b73a8e55bf3746 Reviewed-by: hjk --- src/plugins/projectexplorer/abi.cpp | 4 ++++ src/plugins/projectexplorer/abi.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp index 40960bc234..33272ed234 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -773,6 +773,8 @@ QString Abi::toString(const Architecture &a) return QLatin1String("m32c"); case M16CArchitecture: return QLatin1String("m16c"); + case R32CArchitecture: + return QLatin1String("r32c"); case RiscVArchitecture: return QLatin1String("riscv"); case UnknownArchitecture: @@ -937,6 +939,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a) return M32CArchitecture; if (a == "m16c") return M16CArchitecture; + if (a == "r32c") + return R32CArchitecture; if (a == "riscv") return RiscVArchitecture; else if (a == "xtensa") diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h index a70c045ed4..777b5c2cf0 100644 --- a/src/plugins/projectexplorer/abi.h +++ b/src/plugins/projectexplorer/abi.h @@ -72,6 +72,7 @@ public: M68KArchitecture, M32CArchitecture, M16CArchitecture, + R32CArchitecture, RiscVArchitecture, UnknownArchitecture }; -- cgit v1.2.1