summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2020-05-26 15:54:15 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2020-05-27 07:28:01 +0000
commitd03bbab58e335b7453f2433fc661284dea664221 (patch)
treee3d4060eeaa90f23df1f1a03b098735358107e7e
parent4dfc650fac633b5d4caf7f0151684a290ff50489 (diff)
downloadqt-creator-d03bbab58e335b7453f2433fc661284dea664221.tar.gz
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 <hjk@qt.io>
-rw-r--r--src/plugins/projectexplorer/abi.cpp4
-rw-r--r--src/plugins/projectexplorer/abi.h1
2 files changed, 5 insertions, 0 deletions
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
};