mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-01 16:31:13 +00:00
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
This commit is contained in:
parent
b91c71299a
commit
eb92330c1d
@ -29,20 +29,6 @@ template <typename T> class SmallVectorImpl;
|
|||||||
/// LLVMContext itself provides no locking guarantees, so you should be careful
|
/// LLVMContext itself provides no locking guarantees, so you should be careful
|
||||||
/// to have one context per thread.
|
/// to have one context per thread.
|
||||||
class LLVMContext {
|
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:
|
public:
|
||||||
LLVMContextImpl *const pImpl;
|
LLVMContextImpl *const pImpl;
|
||||||
LLVMContext();
|
LLVMContext();
|
||||||
@ -88,6 +74,21 @@ public:
|
|||||||
void emitError(unsigned LocCookie, StringRef ErrorStr);
|
void emitError(unsigned LocCookie, StringRef ErrorStr);
|
||||||
void emitError(const Instruction *I, StringRef ErrorStr);
|
void emitError(const Instruction *I, StringRef ErrorStr);
|
||||||
void emitError(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
|
/// getGlobalContext - Returns a global context. This is for LLVM clients that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user