Fix codegen of chained declarations
- Killed useless CodeGenModule::EmitGlobalVarDeclarator, instead just recurse on any ScopedDecl. - Fix for <rdar://problem/6093838> llvm-svn: 54162
This commit is contained in:
@@ -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<VarDecl>(D->getNextDeclarator()))
|
||||
if (D->isFileVarDecl())
|
||||
EmitGlobalVar(D);
|
||||
}
|
||||
|
||||
void CodeGenModule::UpdateCompletedType(const TagDecl *TD) {
|
||||
// Make sure that this type is translated.
|
||||
Types.UpdateCompletedType(TD);
|
||||
|
||||
Reference in New Issue
Block a user