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 | 837fd272f8d3ed684a984fc92d09b6a0e5b407be (patch) | |
tree | d2c6510248a8690623e8e9a97a10b8537849d90a /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | fecbc8cff16c31f7481220672657eb2f67e81521 (diff) | |
download | bcm5719-llvm-837fd272f8d3ed684a984fc92d09b6a0e5b407be.tar.gz bcm5719-llvm-837fd272f8d3ed684a984fc92d09b6a0e5b407be.zip |
Fix codegen of chained declarations
- Killed useless CodeGenModule::EmitGlobalVarDeclarator, instead just
recurse on any ScopedDecl.
- Fix for <rdar://problem/6093838>
llvm-svn: 54162
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
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<VarDecl>(D->getNextDeclarator())) - if (D->isFileVarDecl()) - EmitGlobalVar(D); -} - void CodeGenModule::UpdateCompletedType(const TagDecl *TD) { // Make sure that this type is translated. Types.UpdateCompletedType(TD); |