summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorOliver Hunt <oliver@apple.com>2007-12-02 00:11:25 +0000
committerOliver Hunt <oliver@apple.com>2007-12-02 00:11:25 +0000
commitaefc8fd41588360dd06cc4727efc5784bbcd3690 (patch)
tree6ed25943d1c0655439f75d2fa6571e08e6e67558 /clang/CodeGen/CodeGenModule.h
parent3e41367dd513cf5c1342537810114dc221da4f73 (diff)
downloadbcm5719-llvm-aefc8fd41588360dd06cc4727efc5784bbcd3690.tar.gz
bcm5719-llvm-aefc8fd41588360dd06cc4727efc5784bbcd3690.zip
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
Diffstat (limited to 'clang/CodeGen/CodeGenModule.h')
-rw-r--r--clang/CodeGen/CodeGenModule.h4
1 files changed, 2 insertions, 2 deletions
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() {}
};
OpenPOWER on IntegriCloud