summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorLauro Ramos Venancio <lauro.venancio@gmail.com>2008-02-26 21:41:45 +0000
committerLauro Ramos Venancio <lauro.venancio@gmail.com>2008-02-26 21:41:45 +0000
commit01a72ff5d3a152dde8ffa5a8e61b9a4c70b0426d (patch)
treed1eae2e05c4fe1d336fc1b3ad2e42f2b57151d19 /clang/CodeGen/CodeGenModule.h
parente9f30d32886df0995786283f1d4c1fa48724b127 (diff)
downloadbcm5719-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.h4
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.
OpenPOWER on IntegriCloud