From 6ced1d12dd7ee18d65a6df6e66c9662753a5876d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 1 Jul 2011 22:41:06 +0000 Subject: [PATCH] Add initial *-*-rtems* target, from Joel Sherrill git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134282 91177308-0d34-0410-b5e6-96231b3b80d8 --- autoconf/configure.ac | 2 ++ configure | 2 ++ include/llvm/ADT/Triple.h | 3 ++- lib/Support/Triple.cpp | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/autoconf/configure.ac b/autoconf/configure.ac index a39a6857c26..47b48bf6604 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -297,6 +297,8 @@ AC_CACHE_CHECK([type of operating system we're going to target], llvm_cv_target_os_type="MingW" ;; *-*-haiku*) llvm_cv_target_os_type="Haiku" ;; + *-*-rtems*) + llvm_cv_target_os_type="RTEMS" ;; *-unknown-eabi*) llvm_cv_target_os_type="Freestanding" ;; *) diff --git a/configure b/configure index 496854d4bba..7d166202194 100755 --- a/configure +++ b/configure @@ -2337,6 +2337,8 @@ else llvm_cv_target_os_type="MingW" ;; *-*-haiku*) llvm_cv_target_os_type="Haiku" ;; + *-*-rtems*) + llvm_cv_target_os_type="RTEMS" ;; *-unknown-eabi*) llvm_cv_target_os_type="Freestanding" ;; *) diff --git a/include/llvm/ADT/Triple.h b/include/llvm/ADT/Triple.h index 078033d8cf3..66861a1c86e 100644 --- a/include/llvm/ADT/Triple.h +++ b/include/llvm/ADT/Triple.h @@ -95,7 +95,8 @@ public: Solaris, Win32, Haiku, - Minix + Minix, + RTEMS }; enum EnvironmentType { UnknownEnvironment, diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index dbdb303a4fd..bf1fa09a4d0 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -113,6 +113,7 @@ const char *Triple::getOSTypeName(OSType Kind) { case Win32: return "win32"; case Haiku: return "haiku"; case Minix: return "minix"; + case RTEMS: return "rtems"; } return ""; -- 2.34.1