diff options
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2008-02-26 21:41:45 +0000 |
---|---|---|
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | 2008-02-26 21:41:45 +0000 |
commit | 813733577d33ec56479667b49e1bff42dc6bba90 (patch) | |
tree | 121170a321a1591e3fb5288191182cac90bb66d4 /CodeGen/CodeGenModule.h | |
parent | d87a321a3c3902f7acfc6539b8946a00da6e45cc (diff) |
Implement codegen for the following static var init.
void g() {
static char a[10];
static char *b = a;
}
Now we can compile wget!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r-- | CodeGen/CodeGenModule.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h index 48283c53a6..7ea6ef9941 100644 --- a/CodeGen/CodeGenModule.h +++ b/CodeGen/CodeGenModule.h @@ -41,6 +41,8 @@ namespace clang { namespace CodeGen { + class CodeGenFunction; + /// CodeGenModule - This class organizes the cross-module state that is used /// while generating LLVM code. class CodeGenModule { @@ -95,7 +97,7 @@ public: void EmitGlobalVarDeclarator(const FileVarDecl *D); void UpdateCompletedType(const TagDecl *D); llvm::Constant *EmitGlobalInit(const Expr *E); - llvm::Constant *EmitConstantExpr(const Expr *E); + llvm::Constant *EmitConstantExpr(const Expr *E, CodeGenFunction *CGF = 0); /// WarnUnsupported - Print out a warning that codegen doesn't support the /// specified stmt yet. |