diff options
author | Oliver Hunt <oliver@apple.com> | 2007-12-02 00:11:25 +0000 |
---|---|---|
committer | Oliver Hunt <oliver@apple.com> | 2007-12-02 00:11:25 +0000 |
commit | 2824723d6d181d2dfa56e62caabd68b0b18f0b9d (patch) | |
tree | 8b7969bd6e749a3ae1ee582881a1af74710cc9e0 /CodeGen/CodeGenModule.h | |
parent | ab38e4b50268633f037a10841fdfb612513f8d33 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r-- | CodeGen/CodeGenModule.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h index 1d7c30e487..9278e68641 100644 --- a/CodeGen/CodeGenModule.h +++ b/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() {} }; |