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 | 01a72ff5d3a152dde8ffa5a8e61b9a4c70b0426d (patch) | |
| tree | d1eae2e05c4fe1d336fc1b3ad2e42f2b57151d19 /clang/CodeGen/CodeGenModule.h | |
| parent | e9f30d32886df0995786283f1d4c1fa48724b127 (diff) | |
| download | bcm5719-llvm-01a72ff5d3a152dde8ffa5a8e61b9a4c70b0426d.tar.gz bcm5719-llvm-01a72ff5d3a152dde8ffa5a8e61b9a4c70b0426d.zip | |
Implement codegen for the following static var init.
void g() {
static char a[10];
static char *b = a;
}
Now we can compile wget!
llvm-svn: 47627
Diffstat (limited to 'clang/CodeGen/CodeGenModule.h')
| -rw-r--r-- | clang/CodeGen/CodeGenModule.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h index 48283c53a66..7ea6ef9941e 100644 --- a/clang/CodeGen/CodeGenModule.h +++ b/clang/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. |

