diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/LLVMContext.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h index 42b4ea6..a135f67 100644 --- a/include/llvm/LLVMContext.h +++ b/include/llvm/LLVMContext.h @@ -19,6 +19,7 @@ namespace llvm { class LLVMContextImpl; class MetadataContext; + /// This is an important class for using LLVM in a threaded context. It /// (opaquely) owns and manages the core "global" data of LLVM's core /// infrastructure, including the type and constant uniquing tables. @@ -28,8 +29,9 @@ class LLVMContext { // DO NOT IMPLEMENT LLVMContext(LLVMContext&); void operator=(LLVMContext&); + public: - LLVMContextImpl* pImpl; + LLVMContextImpl* const pImpl; MetadataContext &getMetadata(); bool RemoveDeadMetadata(); LLVMContext(); |