summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-02-24 04:21:31 +0000
committerAnders Carlsson <andersca@mac.com>2009-02-24 04:21:31 +0000
commit729a8202d0ba660acdc19ddb96420c3363bf2362 (patch)
tree4bf9f0c3f7e54db3aec86169ace907b8f27cc45c
parentb9c9e1d16f193ca0f2f5f370bf056737d6d3bb6a (diff)
downloadbcm5719-llvm-729a8202d0ba660acdc19ddb96420c3363bf2362.tar.gz
bcm5719-llvm-729a8202d0ba660acdc19ddb96420c3363bf2362.zip
Prevent accidental copying of CodeGenFunction and CodeGenModule.
llvm-svn: 65372
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index b3d6a327ebe..e2b4fedfd56 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -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;
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 3f1aeb80be1..913e4bc4b15 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -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;
OpenPOWER on IntegriCloud