diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-13 05:13:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-13 05:13:43 +0000 |
commit | 88a69ad80e1550e9932666e6efa050a5b1223889 (patch) | |
tree | 285b66d3e3590e4b453b66d34332f35a3e567d39 /CodeGen/ModuleBuilder.cpp | |
parent | fa7c64562d0bf0c9014f0b733a9eaad139c72484 (diff) |
implement support for basic codegen of global variables with no initializers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39795 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/ModuleBuilder.cpp')
-rw-r--r-- | CodeGen/ModuleBuilder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CodeGen/ModuleBuilder.cpp b/CodeGen/ModuleBuilder.cpp index 16b13d1c4d..e525514df5 100644 --- a/CodeGen/ModuleBuilder.cpp +++ b/CodeGen/ModuleBuilder.cpp @@ -32,6 +32,12 @@ void clang::CodeGen::CodeGenFunction(BuilderTy *B, FunctionDecl *D) { static_cast<CodeGenModule*>(B)->EmitFunction(D); } +/// CodeGenGlobalVar - Emit the specified global variable to LLVM. +void clang::CodeGen::CodeGenGlobalVar(BuilderTy *Builder, FileVarDecl *D) { + static_cast<CodeGenModule*>(Builder)->EmitGlobalVar(D); +} + + /// PrintStats - Emit statistic information to stderr. /// void clang::CodeGen::PrintStats(BuilderTy *B) { |