[llvm-commits] [llvm] r113385 - /llvm/trunk/include/llvm/LLVMContext.h
Owen Anderson
resistor at mac.com
Wed Sep 8 11:41:08 PDT 2010
Author: resistor
Date: Wed Sep 8 13:41:07 2010
New Revision: 113385
URL: http://llvm.org/viewvc/llvm-project?rev=113385&view=rev
Log:
Move private member functions to the end of the class declaration.
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=113385&r1=113384&r2=113385&view=diff
==============================================================================
--- llvm/trunk/include/llvm/LLVMContext.h (original)
+++ llvm/trunk/include/llvm/LLVMContext.h Wed Sep 8 13:41:07 2010
@@ -29,20 +29,6 @@
/// 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 @@
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
More information about the llvm-commits
mailing list