aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/LLVMContext.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-08-11 17:45:13 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-08-11 17:45:13 +0000
commit12ddd409535b52a7fa5157ded9a4cedd161fedb6 (patch)
treeb3a6553c71216593be569cd25abbba245b085aae /include/llvm/LLVMContext.h
parentc588d558100b488ff20f560b5c35d3bec4790aff (diff)
downloadexternal_llvm-12ddd409535b52a7fa5157ded9a4cedd161fedb6.tar.gz
external_llvm-12ddd409535b52a7fa5157ded9a4cedd161fedb6.tar.bz2
external_llvm-12ddd409535b52a7fa5157ded9a4cedd161fedb6.zip
Make LLVMContext and LLVMContextImpl classes instead of structs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLVMContext.h')
-rw-r--r--include/llvm/LLVMContext.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h
index c72b21c12e..95b4eaa294 100644
--- a/include/llvm/LLVMContext.h
+++ b/include/llvm/LLVMContext.h
@@ -17,14 +17,15 @@
namespace llvm {
-struct LLVMContextImpl;
+class LLVMContextImpl;
/// 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.
/// LLVMContext itself provides no locking guarantees, so you should be careful
/// to have one context per thread.
-struct LLVMContext {
+class LLVMContext {
+public:
LLVMContextImpl* pImpl;
bool RemoveDeadMetadata();
LLVMContext();