summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-07-01 22:41:06 +0000
committerDouglas Gregor <dgregor@apple.com>2011-07-01 22:41:06 +0000
commitde3c92674eb0eb8dcbb4078ae0a3fbd3ad22e051 (patch)
tree0c3ed517196285bc8eef8628ced584ae7127e22b
parentc9c090d7a5607e7e5746c9502f3163d62fe6b2fa (diff)
downloadbcm5719-llvm-de3c92674eb0eb8dcbb4078ae0a3fbd3ad22e051.tar.gz
bcm5719-llvm-de3c92674eb0eb8dcbb4078ae0a3fbd3ad22e051.zip
Add initial *-*-rtems* target, from Joel Sherrill
llvm-svn: 134282
-rw-r--r--llvm/autoconf/configure.ac2
-rwxr-xr-xllvm/configure2
-rw-r--r--llvm/include/llvm/ADT/Triple.h3
-rw-r--r--llvm/lib/Support/Triple.cpp1
4 files changed, 7 insertions, 1 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac
index a39a6857c26..47b48bf6604 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/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/llvm/configure b/llvm/configure
index 496854d4bba..7d166202194 100755
--- a/llvm/configure
+++ b/llvm/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/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h
index 078033d8cf3..66861a1c86e 100644
--- a/llvm/include/llvm/ADT/Triple.h
+++ b/llvm/include/llvm/ADT/Triple.h
@@ -95,7 +95,8 @@ public:
Solaris,
Win32,
Haiku,
- Minix
+ Minix,
+ RTEMS
};
enum EnvironmentType {
UnknownEnvironment,
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index dbdb303a4fd..bf1fa09a4d0 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/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 "<invalid>";
OpenPOWER on IntegriCloud