aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-08-24 10:07:20 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-08-24 10:07:20 +0000
commit0a262ba7c3250ef02833fae864459ccc905a2e9b (patch)
treec9538f3275fedf709ead68ba853ad20ee270ae40 /include/llvm/System
parent6ef4949a0bea3f22e7572119d3692b1a5866ffe8 (diff)
downloadexternal_llvm-0a262ba7c3250ef02833fae864459ccc905a2e9b.zip
external_llvm-0a262ba7c3250ef02833fae864459ccc905a2e9b.tar.gz
external_llvm-0a262ba7c3250ef02833fae864459ccc905a2e9b.tar.bz2
For PR616:
These patches make threading optional in LLVM. The configuration scripts are now modified to accept a --disable-threads switch. If this is used, the Mutex class will be implemented with all functions as no-op. Furthermore, linking against libpthread will not be done. Finally, the ParallelJIT example needs libpthread so its makefile was changed to always add -lpthread to the link line. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/Mutex.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/System/Mutex.h b/include/llvm/System/Mutex.h
index 5254703..94dd811 100644
--- a/include/llvm/System/Mutex.h
+++ b/include/llvm/System/Mutex.h
@@ -66,7 +66,9 @@ namespace llvm
/// @name Platform Dependent Data
/// @{
private:
+#ifdef ENABLE_THREADS
void* data_; ///< We don't know what the data will be
+#endif
/// @}
/// @name Do Not Implement