diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-06 17:43:57 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-06 17:43:57 +0000 |
commit | e66abdc58f628a026ba3eee1bf4caaa182e07262 (patch) | |
tree | bc300e63c1183039b3412cdf343abfcb8b1573aa | |
parent | 10d3dc569b2afe1ba9dccf6650b131b87f9be4ad (diff) | |
download | bcm5719-llvm-e66abdc58f628a026ba3eee1bf4caaa182e07262.tar.gz bcm5719-llvm-e66abdc58f628a026ba3eee1bf4caaa182e07262.zip |
Make LLVMContext's pImpl member const.
llvm-svn: 83393
-rw-r--r-- | llvm/include/llvm/LLVMContext.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/LLVMContext.h b/llvm/include/llvm/LLVMContext.h index 42b4ea69b93..a135f671b77 100644 --- a/llvm/include/llvm/LLVMContext.h +++ b/llvm/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(); |