From 95435674f9faf01bcbdba7f3af03118149eb1551 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Wed, 4 Mar 2009 18:17:45 +0000 Subject: Move more of blocks codegen out of CodeGenModule and into the BlockModule. No functionality change. This should help people that don't want to know anything about blocks not be confused by the overloaded use of the term block or nor want to see all the blocks goop. llvm-svn: 66042 --- clang/lib/CodeGen/CodeGenModule.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 33aff2553fd0..c0dba74ad025 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -34,10 +34,9 @@ using namespace CodeGen; CodeGenModule::CodeGenModule(ASTContext &C, const LangOptions &LO, llvm::Module &M, const llvm::TargetData &TD, Diagnostic &diags, bool GenerateDebugInfo) - : Context(C), Features(LO), TheModule(M), TheTargetData(TD), Diags(diags), - Types(C, M, TD), Runtime(0), MemCpyFn(0), MemMoveFn(0), MemSetFn(0), - CFConstantStringClassRef(0), NSConcreteGlobalBlock(0), - NSConcreteStackBlock(0),BlockDescriptorType(0), GenericBlockLiteralType(0) { + : BlockModule(C, M, Types), Context(C), Features(LO), TheModule(M), + TheTargetData(TD), Diags(diags), Types(C, M, TD), Runtime(0), + MemCpyFn(0), MemMoveFn(0), MemSetFn(0), CFConstantStringClassRef(0) { if (Features.ObjC1) { if (Features.NeXTRuntime) { @@ -50,8 +49,6 @@ CodeGenModule::CodeGenModule(ASTContext &C, const LangOptions &LO, // If debug info generation is enabled, create the CGDebugInfo object. DebugInfo = GenerateDebugInfo ? new CGDebugInfo(this) : 0; - - Block.GlobalUniqueCount = 0; } CodeGenModule::~CodeGenModule() { -- cgit v1.2.3