Prevent accidental copying of CodeGenFunction and CodeGenModule.

llvm-svn: 65372
This commit is contained in:
Anders Carlsson 2009-02-24 04:21:31 +00:00
parent b9c9e1d16f
commit 729a8202d0
2 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,8 @@ namespace CodeGen {
/// CodeGenFunction - This class organizes the per-function state that is used
/// while generating LLVM code.
class CodeGenFunction {
CodeGenFunction(const CodeGenFunction&); // DO NOT IMPLEMENT
void operator=(const CodeGenFunction&); // DO NOT IMPLEMENT
public:
CodeGenModule &CGM; // Per-module state.
TargetInfo &Target;

View File

@ -62,6 +62,9 @@ namespace CodeGen {
/// CodeGenModule - This class organizes the cross-function state that is used
/// while generating LLVM code.
class CodeGenModule {
CodeGenModule(const CodeGenModule&); // DO NOT IMPLEMENT
void operator=(const CodeGenModule&); // DO NOT IMPLEMENT
typedef std::vector< std::pair<llvm::Constant*, int> > CtorList;
ASTContext &Context;