summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorIvan Krasin <krasin@chromium.org>2011-08-18 22:54:21 +0000
committerIvan Krasin <krasin@chromium.org>2011-08-18 22:54:21 +0000
commit44306e2e5f20372e32b265e6cfe7495ee20011a3 (patch)
treef8405d100e7fead8ff639d1ac61293daf684444b /llvm
parent18db5d4e9da599eedb864e82d92f93605651c7f3 (diff)
downloadbcm5719-llvm-44306e2e5f20372e32b265e6cfe7495ee20011a3.tar.gz
bcm5719-llvm-44306e2e5f20372e32b265e6cfe7495ee20011a3.zip
Add NativeClient operating system support.
This patch adds support of NativeClient (*-*-nacl) OS support to LLVM. It's already supported in autoconf/config.sub. The motivation for this change is to start upstreaming PNaCl work. The whole set of patches include llvm backends (i686, x86_64, ARM), llvm-gcc (probably, would not be upstreamed because it's deprecated) and clang (the work has been just started, the amount of changes is going to be low and the most of the work is expected to be done close to the mainline). llvm-svn: 138005
Diffstat (limited to 'llvm')
-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 8a0d73b7de6..f3e94e89dfb 100644
--- a/llvm/autoconf/configure.ac
+++ b/llvm/autoconf/configure.ac
@@ -299,6 +299,8 @@ AC_CACHE_CHECK([type of operating system we're going to target],
llvm_cv_target_os_type="Haiku" ;;
*-*-rtems*)
llvm_cv_target_os_type="RTEMS" ;;
+ *-*-nacl*)
+ llvm_cv_target_os_type="NativeClient" ;;
*-unknown-eabi*)
llvm_cv_target_os_type="Freestanding" ;;
*)
diff --git a/llvm/configure b/llvm/configure
index ebaec686b35..c8ada54cb9b 100755
--- a/llvm/configure
+++ b/llvm/configure
@@ -2341,6 +2341,8 @@ else
llvm_cv_target_os_type="Haiku" ;;
*-*-rtems*)
llvm_cv_target_os_type="RTEMS" ;;
+ *-*-nacl*)
+ llvm_cv_target_os_type="NativeClient" ;;
*-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 a48620ed642..86817e93c0c 100644
--- a/llvm/include/llvm/ADT/Triple.h
+++ b/llvm/include/llvm/ADT/Triple.h
@@ -94,7 +94,8 @@ public:
Win32,
Haiku,
Minix,
- RTEMS
+ RTEMS,
+ NativeClient
};
enum EnvironmentType {
UnknownEnvironment,
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 05e1f922199..8bb7f382329 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -110,6 +110,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case Haiku: return "haiku";
case Minix: return "minix";
case RTEMS: return "rtems";
+ case NativeClient: return "nacl";
}
return "<invalid>";
OpenPOWER on IntegriCloud