]> granicus.if.org Git - clang/commitdiff
Prevent accidental copying of CodeGenFunction and CodeGenModule.
authorAnders Carlsson <andersca@mac.com>
Tue, 24 Feb 2009 04:21:31 +0000 (04:21 +0000)
committerAnders Carlsson <andersca@mac.com>
Tue, 24 Feb 2009 04:21:31 +0000 (04:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65372 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CodeGenFunction.h
lib/CodeGen/CodeGenModule.h

index b3d6a327ebeac97d01908c8f9cbe4965b2b53c2f..e2b4fedfd56090993ecf09a4bd23c65eff04ba11 100644 (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;
index 3f1aeb80be10c6e7abcca74d0c9b44e14098b900..913e4bc4b1583884d5bd73ab88c98b8566ec5956 100644 (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;