diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-07-29 17:47:36 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-07-29 17:47:36 +0000 |
commit | 58a7a265cf9203795e718d12c074f103e6b27e73 (patch) | |
tree | 838a1a80aa4ab0e6ec497ae875b7cff741ee3a7e /lib/CodeGen/CodeGenModule.cpp | |
parent | 6bd2d277e9bbbf911d8597a2b12fae2369a48190 (diff) |
Fix codegen of chained declarations
- Killed useless CodeGenModule::EmitGlobalVarDeclarator, instead just
recurse on any ScopedDecl.
- Fix for <rdar://problem/6093838>
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54162 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index f2112ebd72..565286c43d 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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<VarDecl>(D->getNextDeclarator())) - if (D->isFileVarDecl()) - EmitGlobalVar(D); -} - void CodeGenModule::UpdateCompletedType(const TagDecl *TD) { // Make sure that this type is translated. Types.UpdateCompletedType(TD); |