aboutsummaryrefslogtreecommitdiff
path: root/include/clang/CodeGen/ModuleBuilder.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-13 05:13:43 +0000
committerChris Lattner <sabre@nondot.org>2007-07-13 05:13:43 +0000
commit88a69ad80e1550e9932666e6efa050a5b1223889 (patch)
tree285b66d3e3590e4b453b66d34332f35a3e567d39 /include/clang/CodeGen/ModuleBuilder.h
parentfa7c64562d0bf0c9014f0b733a9eaad139c72484 (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 'include/clang/CodeGen/ModuleBuilder.h')
-rw-r--r--include/clang/CodeGen/ModuleBuilder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/CodeGen/ModuleBuilder.h b/include/clang/CodeGen/ModuleBuilder.h
index e9cb2b5bd4..0b1ae476ed 100644
--- a/include/clang/CodeGen/ModuleBuilder.h
+++ b/include/clang/CodeGen/ModuleBuilder.h
@@ -21,6 +21,7 @@ namespace llvm {
namespace clang {
class ASTContext;
class FunctionDecl;
+ class FileVarDecl;
namespace CodeGen {
/// BuilderTy - This is an opaque type used to reference ModuleBuilder
@@ -34,6 +35,9 @@ namespace CodeGen {
///
void CodeGenFunction(BuilderTy *Builder, FunctionDecl *D);
+ /// CodeGenGlobalVar - Emit the specified global variable to LLVM.
+ void CodeGenGlobalVar(BuilderTy *Builder, FileVarDecl *D);
+
/// PrintStats - Emit statistic information to stderr.
///
void PrintStats(BuilderTy *Builder);