Make LLVMContext's pImpl member const.
authorDan Gohman <gohman@apple.com>
Tue, 6 Oct 2009 17:43:57 +0000 (17:43 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 6 Oct 2009 17:43:57 +0000 (17:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83393 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/LLVMContext.h

index 42b4ea69b93416380f01d0258f3a159a96a50245..a135f671b77146d145aafeae11c71c2c0685ccec 100644 (file)
@@ -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();