Refactor CodeGenTypes out to CodeGenModule so it can be used for functions

and globals.

llvm-svn: 39661
This commit is contained in:
Chris Lattner
2007-06-16 00:16:26 +00:00
parent 2052bc8107
commit 2ccb73bc8b
4 changed files with 17 additions and 6 deletions

View File

@@ -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())