diff options
| author | Owen Anderson <resistor@mac.com> | 2010-09-08 18:41:07 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2010-09-08 18:41:07 +0000 |
| commit | 38e164de21fe19249d616c943ef9a97400f1f63e (patch) | |
| tree | f5248681a4eff006ac1ddcbde3f34a7fe0d9b8c3 /include/llvm/LLVMContext.h | |
| parent | 8da0226561f89ac24cf488171c7e1f7ffaec4142 (diff) | |
| download | external_llvm-38e164de21fe19249d616c943ef9a97400f1f63e.zip external_llvm-38e164de21fe19249d616c943ef9a97400f1f63e.tar.gz external_llvm-38e164de21fe19249d616c943ef9a97400f1f63e.tar.bz2 | |
Move private member functions to the end of the class declaration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLVMContext.h')
| -rw-r--r-- | include/llvm/LLVMContext.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h index fb89aa4..8abf277 100644 --- a/include/llvm/LLVMContext.h +++ b/include/llvm/LLVMContext.h @@ -29,20 +29,6 @@ template <typename T> class SmallVectorImpl; /// LLVMContext itself provides no locking guarantees, so you should be careful /// to have one context per thread. class LLVMContext { - // DO NOT IMPLEMENT - LLVMContext(LLVMContext&); - void operator=(LLVMContext&); - - /// addModule - Register a module as being instantiated in this context. If - /// the context is deleted, the module will be deleted as well. - void addModule(Module*); - - /// removeModule - Unregister a module from this context. - void removeModule(Module*); - - // Module needs access to the add/removeModule methods. - friend class Module; - public: LLVMContextImpl *const pImpl; LLVMContext(); @@ -88,6 +74,21 @@ public: void emitError(unsigned LocCookie, StringRef ErrorStr); void emitError(const Instruction *I, StringRef ErrorStr); void emitError(StringRef ErrorStr); + +private: + // DO NOT IMPLEMENT + LLVMContext(LLVMContext&); + void operator=(LLVMContext&); + + /// addModule - Register a module as being instantiated in this context. If + /// the context is deleted, the module will be deleted as well. + void addModule(Module*); + + /// removeModule - Unregister a module from this context. + void removeModule(Module*); + + // Module needs access to the add/removeModule methods. + friend class Module; }; /// getGlobalContext - Returns a global context. This is for LLVM clients that |
