From aefc8fd41588360dd06cc4727efc5784bbcd3690 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Sun, 2 Dec 2007 00:11:25 +0000 Subject: Support initalisers for more than just int-typed static variables. We now use the CodeGenModule logic for generating the constant initialiser expression, so happily further initialiser fixes should automatically work for statics as well. llvm-svn: 44495 --- clang/CodeGen/CodeGenModule.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/CodeGen/CodeGenModule.h') diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h index 1d7c30e4872..9278e686410 100644 --- a/clang/CodeGen/CodeGenModule.h +++ b/clang/CodeGen/CodeGenModule.h @@ -30,6 +30,7 @@ namespace clang { class ASTContext; class FunctionDecl; class Decl; + class Expr; class ValueDecl; class FileVarDecl; struct LangOptions; @@ -76,8 +77,7 @@ public: void EmitFunction(const FunctionDecl *FD); void EmitGlobalVar(const FileVarDecl *D); void EmitGlobalVarDeclarator(const FileVarDecl *D); - llvm::Constant *EmitGlobalInit(const FileVarDecl *D, - llvm::GlobalVariable *GV); + llvm::Constant *EmitGlobalInit(const Expr *Expression); void PrintStats() {} }; -- cgit v1.2.3