summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-06-16 00:16:26 +0000
committerChris Lattner <sabre@nondot.org>2007-06-16 00:16:26 +0000
commit2ccb73bc8b017844840f66d74a3eb07d28014b62 (patch)
treed24a2904d56f7d5e9deac046af708febca982681 /clang/CodeGen/CodeGenModule.cpp
parent2052bc810726672c19b3f59b91479efd61f9e67f (diff)
downloadbcm5719-llvm-2ccb73bc8b017844840f66d74a3eb07d28014b62.tar.gz
bcm5719-llvm-2ccb73bc8b017844840f66d74a3eb07d28014b62.zip
Refactor CodeGenTypes out to CodeGenModule so it can be used for functions
and globals. llvm-svn: 39661
Diffstat (limited to 'clang/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/CodeGen/CodeGenModule.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/CodeGen/CodeGenModule.cpp b/clang/CodeGen/CodeGenModule.cpp
index 648e0ad30a5..6ec9b796bd9 100644
--- a/clang/CodeGen/CodeGenModule.cpp
+++ b/clang/CodeGen/CodeGenModule.cpp
@@ -13,11 +13,15 @@
#include "CodeGenModule.h"
#include "CodeGenFunction.h"
+#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
using namespace clang;
using namespace CodeGen;
+CodeGenModule::CodeGenModule(ASTContext &C, llvm::Module &M)
+ : Context(C), TheModule(M), Types(C.Target) {}
+
void CodeGenModule::EmitFunction(FunctionDecl *FD) {
// If this is not a prototype, emit the body.
if (FD->getBody())
OpenPOWER on IntegriCloud