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 | 6ee31f5df844f0fd52db01605742afbe552cdf1b (patch) | |
tree | 39431865abd8bcc4858c52b371b12b27b9b463dd /clang/CodeGen/CodeGenModule.cpp | |
parent | 027f21dd72af5a76a6112501ada3eb4435e65f92 (diff) | |
download | bcm5719-llvm-6ee31f5df844f0fd52db01605742afbe552cdf1b.tar.gz bcm5719-llvm-6ee31f5df844f0fd52db01605742afbe552cdf1b.zip |
In "int X,Y;", compile both X and Y.
llvm-svn: 39848
Diffstat (limited to 'clang/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/CodeGen/CodeGenModule.cpp b/clang/CodeGen/CodeGenModule.cpp index b610d3eb27e..4bf4b86bcb6 100644 --- a/clang/CodeGen/CodeGenModule.cpp +++ b/clang/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; |