From 8a219ceda2b5afd447e7199b9c53079bead31b89 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Tue, 24 Feb 2009 04:21:31 +0000 Subject: [PATCH] Prevent accidental copying of CodeGenFunction and CodeGenModule. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65372 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenFunction.h | 2 ++ lib/CodeGen/CodeGenModule.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index b3d6a327eb..e2b4fedfd5 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/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/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index 3f1aeb80be..913e4bc4b1 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/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 > CtorList; ASTContext &Context; -- 2.40.0