aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-06 17:43:57 +0000
committerDan Gohman <gohman@apple.com>2009-10-06 17:43:57 +0000
commit4c45a0c48614b2387855cee4f1e3f99013344ecf (patch)
tree68082a7186a46b7db0daac449cfd8232fd867a23 /include/llvm
parent5fda434b0d4932d63b21ce3b5dd72c18e855da26 (diff)
downloadexternal_llvm-4c45a0c48614b2387855cee4f1e3f99013344ecf.zip
external_llvm-4c45a0c48614b2387855cee4f1e3f99013344ecf.tar.gz
external_llvm-4c45a0c48614b2387855cee4f1e3f99013344ecf.tar.bz2
Make LLVMContext's pImpl member const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/LLVMContext.h4
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();