aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Config/config.h.in9
-rw-r--r--include/llvm/System/Mutex.h2
2 files changed, 8 insertions, 3 deletions
diff --git a/include/llvm/Config/config.h.in b/include/llvm/Config/config.h.in
index ecd6b55..b7fb6d3 100644
--- a/include/llvm/Config/config.h.in
+++ b/include/llvm/Config/config.h.in
@@ -11,6 +11,9 @@
/* Define to 1 if using `alloca.c'. */
#undef C_ALLOCA
+/* Define if threads enabled */
+#undef ENABLE_THREADS
+
/* Define to 1 if you have `alloca', as a function or macro. */
#undef HAVE_ALLOCA
@@ -449,9 +452,9 @@
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
- STACK_DIRECTION > 0 => grows toward higher addresses
- STACK_DIRECTION < 0 => grows toward lower addresses
- STACK_DIRECTION = 0 => direction of growth unknown */
+ STACK_DIRECTION > 0 => grows toward higher addresses
+ STACK_DIRECTION < 0 => grows toward lower addresses
+ STACK_DIRECTION = 0 => direction of growth unknown */
#undef STACK_DIRECTION
/* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
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