summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test
diff options
context:
space:
mode:
authorJonathan Roelofs <jonathan@codesourcery.com>2014-09-05 17:46:40 +0000
committerJonathan Roelofs <jonathan@codesourcery.com>2014-09-05 17:46:40 +0000
commit3b7f085db18e690458f9f594d31489bf75354fec (patch)
tree4ef767803f60d9ef2384c154d39678f0543420d1 /libcxxabi/test
parent3547c5441e468ab82e85cc1285eff75bc18c639a (diff)
downloadbcm5719-llvm-3b7f085db18e690458f9f594d31489bf75354fec.tar.gz
bcm5719-llvm-3b7f085db18e690458f9f594d31489bf75354fec.zip
s/LIBCXXABI_SINGLE_THREADED/LIBCXXABI_HAS_NO_THREADS/ for consistency with libcxx
Also remove the audotedection part so that if you're crazy enough to want a single-threaded abi library, you'll say so explicitly in the build. llvm-svn: 217262
Diffstat (limited to 'libcxxabi/test')
-rw-r--r--libcxxabi/test/test_exception_storage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxxabi/test/test_exception_storage.cpp b/libcxxabi/test/test_exception_storage.cpp
index f1d63fdfc43..f1e2fb5e477 100644
--- a/libcxxabi/test/test_exception_storage.cpp
+++ b/libcxxabi/test/test_exception_storage.cpp
@@ -12,7 +12,7 @@
#include <cstdlib>
#include <algorithm>
#include <iostream>
-#if !LIBCXXABI_SINGLE_THREADED
+#if !LIBCXXABI_HAS_NO_THREADS
# include <pthread.h>
#endif
#include <unistd.h>
@@ -38,7 +38,7 @@ void *thread_code (void *parm) {
return parm;
}
-#if !LIBCXXABI_SINGLE_THREADED
+#if !LIBCXXABI_HAS_NO_THREADS
#define NUMTHREADS 10
size_t thread_globals [ NUMTHREADS ] = { 0 };
pthread_t threads [ NUMTHREADS ];
@@ -54,7 +54,7 @@ void print_sizes ( size_t *first, size_t *last ) {
int main ( int argc, char *argv [] ) {
int retVal = 0;
-#if LIBCXXABI_SINGLE_THREADED
+#if LIBCXXABI_HAS_NO_THREADS
size_t thread_globals;
retVal = thread_code(&thread_globals) != 0;
#else
OpenPOWER on IntegriCloud