diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-14 00:16:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-14 00:16:50 +0000 |
commit | 32b266cff60737fedff00e8e721f3474533835ef (patch) | |
tree | 6af9669c9dfc3923b591bab0d06143743907e694 /CodeGen/CodeGenModule.cpp | |
parent | 06c8d963bcdd73797959d46b9f6d46661e7588a6 (diff) |
In "int X,Y;", compile both X and Y.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.cpp')
-rw-r--r-- | CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CodeGen/CodeGenModule.cpp b/CodeGen/CodeGenModule.cpp index b610d3eb27..4bf4b86bcb 100644 --- a/CodeGen/CodeGenModule.cpp +++ b/CodeGen/CodeGenModule.cpp @@ -88,6 +88,12 @@ void CodeGenModule::EmitGlobalVar(const FileVarDecl *D) { } } +/// EmitGlobalVarDeclarator - Emit all the global vars attached to the specified +/// declarator chain. +void CodeGenModule::EmitGlobalVarDeclarator(const FileVarDecl *D) { + for (; D; D = cast_or_null<FileVarDecl>(D->getNextDeclarator())) + EmitGlobalVar(D); +} llvm::Function *CodeGenModule::getMemCpyFn() { if (MemCpyFn) return MemCpyFn; |