[cfe-commits] r65372 - in /cfe/trunk/lib/CodeGen: CodeGenFunction.h CodeGenModule.h

Anders Carlsson andersca at mac.com
Mon Feb 23 20:21:31 PST 2009


Author: andersca
Date: Mon Feb 23 22:21:31 2009
New Revision: 65372

URL: http://llvm.org/viewvc/llvm-project?rev=65372&view=rev
Log:
Prevent accidental copying of CodeGenFunction and CodeGenModule.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenFunction.h
    cfe/trunk/lib/CodeGen/CodeGenModule.h

Modified: cfe/trunk/lib/CodeGen/CodeGenFunction.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenFunction.h?rev=65372&r1=65371&r2=65372&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenFunction.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenFunction.h Mon Feb 23 22:21:31 2009
@@ -62,6 +62,8 @@
 /// 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;

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.h?rev=65372&r1=65371&r2=65372&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.h (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.h Mon Feb 23 22:21:31 2009
@@ -62,6 +62,9 @@
 /// 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;





More information about the cfe-commits mailing list