From 837fd272f8d3ed684a984fc92d09b6a0e5b407be Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 29 Jul 2008 17:47:36 +0000 Subject: Fix codegen of chained declarations - Killed useless CodeGenModule::EmitGlobalVarDeclarator, instead just recurse on any ScopedDecl. - Fix for llvm-svn: 54162 --- clang/lib/CodeGen/CodeGenModule.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index f2112ebd721..565286c43de 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -772,14 +772,6 @@ void CodeGenModule::EmitGlobalVarInit(const VarDecl *D) { } } -/// EmitGlobalVarDeclarator - Emit all the global vars attached to the specified -/// declarator chain. -void CodeGenModule::EmitGlobalVarDeclarator(const VarDecl *D) { - for (; D; D = cast_or_null(D->getNextDeclarator())) - if (D->isFileVarDecl()) - EmitGlobalVar(D); -} - void CodeGenModule::UpdateCompletedType(const TagDecl *TD) { // Make sure that this type is translated. Types.UpdateCompletedType(TD); -- cgit v1.2.3