mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Reapply my less-lock-contention-in-leak-detector patch, now with new files
actually added. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79429 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#define LLVM_LLVMCONTEXT_IMPL_H
|
||||
|
||||
#include "ConstantsContext.h"
|
||||
#include "LeaksContext.h"
|
||||
#include "TypesContext.h"
|
||||
#include "llvm/LLVMContext.h"
|
||||
#include "llvm/Constants.h"
|
||||
@@ -134,6 +135,10 @@ public:
|
||||
ConstantInt *TheTrueVal;
|
||||
ConstantInt *TheFalseVal;
|
||||
|
||||
// Lock used for guarding access to the leak detector
|
||||
sys::SmartMutex<true> LLVMObjectsLock;
|
||||
LeakDetectorImpl<Value> LLVMObjects;
|
||||
|
||||
// Lock used for guarding access to the type maps.
|
||||
sys::SmartMutex<true> TypeMapLock;
|
||||
|
||||
|
Reference in New Issue
Block a user