[llvm-commits] [llvm] r83393 - /llvm/trunk/include/llvm/LLVMContext.h
Dan Gohman
gohman at apple.com
Tue Oct 6 10:43:57 PDT 2009
Author: djg
Date: Tue Oct 6 12:43:57 2009
New Revision: 83393
URL: http://llvm.org/viewvc/llvm-project?rev=83393&view=rev
Log:
Make LLVMContext's pImpl member const.
Modified:
llvm/trunk/include/llvm/LLVMContext.h
Modified: llvm/trunk/include/llvm/LLVMContext.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/LLVMContext.h?rev=83393&r1=83392&r2=83393&view=diff
==============================================================================
--- llvm/trunk/include/llvm/LLVMContext.h (original)
+++ llvm/trunk/include/llvm/LLVMContext.h Tue Oct 6 12:43:57 2009
@@ -19,6 +19,7 @@
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 @@
// DO NOT IMPLEMENT
LLVMContext(LLVMContext&);
void operator=(LLVMContext&);
+
public:
- LLVMContextImpl* pImpl;
+ LLVMContextImpl* const pImpl;
MetadataContext &getMetadata();
bool RemoveDeadMetadata();
LLVMContext();
More information about the llvm-commits
mailing list