Add initial *-*-rtems* target, from Joel Sherrill

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134282 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Douglas Gregor 2011-07-01 22:41:06 +00:00
parent 385e930d55
commit 6ced1d12dd
4 changed files with 7 additions and 1 deletions

View File

@ -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" ;;
*)

2
configure vendored
View File

@ -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" ;;
*)

View File

@ -95,7 +95,8 @@ public:
Solaris,
Win32,
Haiku,
Minix
Minix,
RTEMS
};
enum EnvironmentType {
UnknownEnvironment,

View File

@ -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>";