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
This commit is contained in:
Owen Anderson 2009-06-19 00:48:22 +00:00
parent fadc83c699
commit 4f10c3b4dc
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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;
}