summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-06-22 18:48:09 +0000
committerChris Lattner <sabre@nondot.org>2007-06-22 18:48:09 +0000
commit09153c0a8c949909b5dc29671e668a71affee6bb (patch)
tree06c217109a40b59e8777b060a98f066fefe8ca47 /clang/CodeGen/CodeGenModule.h
parent3e3a1e9cda72e795547e930968b8b5c006ff8cd5 (diff)
downloadbcm5719-llvm-09153c0a8c949909b5dc29671e668a71affee6bb.tar.gz
bcm5719-llvm-09153c0a8c949909b5dc29671e668a71affee6bb.zip
Build enough support for aggregates to be able to compile this:
void test(int A, _Complex float Y) { _Complex float X; X = X; } llvm-svn: 39669
Diffstat (limited to 'clang/CodeGen/CodeGenModule.h')
-rw-r--r--clang/CodeGen/CodeGenModule.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/CodeGen/CodeGenModule.h b/clang/CodeGen/CodeGenModule.h
index 8e40483bd57..885fb97a9f5 100644
--- a/clang/CodeGen/CodeGenModule.h
+++ b/clang/CodeGen/CodeGenModule.h
@@ -20,6 +20,7 @@
namespace llvm {
class Module;
class Constant;
+ class Function;
}
namespace clang {
@@ -36,6 +37,7 @@ class CodeGenModule {
llvm::Module &TheModule;
CodeGenTypes Types;
+ llvm::Function *MemCpyFn;
llvm::DenseMap<const Decl*, llvm::Constant*> GlobalDeclMap;
public:
CodeGenModule(ASTContext &C, llvm::Module &M);
@@ -46,6 +48,8 @@ public:
llvm::Constant *GetAddrOfGlobalDecl(const Decl *D);
+ llvm::Function *getMemCpyFn();
+
void EmitFunction(FunctionDecl *FD);
void PrintStats() {}
OpenPOWER on IntegriCloud