diff options
author | Anders Carlsson <andersca@mac.com> | 2008-01-26 01:36:00 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2008-01-26 01:36:00 +0000 |
commit | 3b1d57b623702865e4158b00cb1d984ba6dd5d50 (patch) | |
tree | 10831a26174352c08c8641269656f3e38ba5c848 /CodeGen/CodeGenModule.h | |
parent | 33d4aab80f31bd06257526fe2883ea920529456b (diff) |
Factor out the constant generation into its own file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r-- | CodeGen/CodeGenModule.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h index b86ceba426..87b9e9ce16 100644 --- a/CodeGen/CodeGenModule.h +++ b/CodeGen/CodeGenModule.h @@ -87,12 +87,14 @@ public: void EmitFunction(const FunctionDecl *FD); void EmitGlobalVar(const FileVarDecl *D); void EmitGlobalVarDeclarator(const FileVarDecl *D); - llvm::Constant *EmitGlobalInit(const Expr *Expression); - + llvm::Constant *EmitGlobalInit(const Expr *E); + llvm::Constant *EmitConstantExpr(const Expr *E); + void PrintStats() {} /// WarnUnsupported - Print out a warning that codegen doesn't support the /// specified stmt yet. + void WarnUnsupported(const Stmt *S, const char *Type); /// WarnUnsupported - Print out a warning that codegen doesn't support the |