aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-19 00:48:22 +0000
committerOwen Anderson <resistor@mac.com>2009-06-19 00:48:22 +0000
commita35e3bd3dd4f53bbdca862a74467ef0b70f706ca (patch)
tree999f95edcadd9a4ab7a893037eaf7caaa0061244 /include/llvm/System
parentb4fa71968179cccd83033e09526e56f3d862031d (diff)
downloadexternal_llvm-a35e3bd3dd4f53bbdca862a74467ef0b70f706ca.zip
external_llvm-a35e3bd3dd4f53bbdca862a74467ef0b70f706ca.tar.gz
external_llvm-a35e3bd3dd4f53bbdca862a74467ef0b70f706ca.tar.bz2
Fix weird class-size-being-different problems. At some level this is being caused by config.h not being
included everywhere. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/Mutex.h2
-rw-r--r--include/llvm/System/RWMutex.h6
2 files changed, 2 insertions, 6 deletions
diff --git a/include/llvm/System/Mutex.h b/include/llvm/System/Mutex.h
index 6f5614f..2a70ba0 100644
--- a/include/llvm/System/Mutex.h
+++ b/include/llvm/System/Mutex.h
@@ -68,9 +68,7 @@ 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
diff --git a/include/llvm/System/RWMutex.h b/include/llvm/System/RWMutex.h
index 6a254b8..aa5b0b9 100644
--- a/include/llvm/System/RWMutex.h
+++ b/include/llvm/System/RWMutex.h
@@ -68,9 +68,7 @@ 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
@@ -85,12 +83,12 @@ namespace llvm
/// indicates whether this mutex should become a no-op when we're not
/// running in multithreaded mode.
template<bool mt_only>
- class SmartRWMutex : RWMutexImpl {
+ class SmartRWMutex : public RWMutexImpl {
public:
explicit SmartRWMutex() : RWMutexImpl() { }
bool reader_acquire() {
- if (!mt_only && llvm_is_multithreaded())
+ if (!mt_only || llvm_is_multithreaded())
return RWMutexImpl::reader_acquire();
return true;
}