blob: f1f24f5dcf0a0497732e6506168c406e00b8ce61 [file] [log] [blame]
Chris Lattnerbed31442007-05-28 01:07:47 +00001//===--- CodeGenModule.cpp - Emit LLVM Code from ASTs for a Module --------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Chris Lattner and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This coordinates the per-module state used while generating code.
11//
12//===----------------------------------------------------------------------===//
13
14#include "CodeGenModule.h"
15#include "CodeGenFunction.h"
16using namespace llvm;
17using namespace clang;
18using namespace CodeGen;
19
20
21void CodeGenModule::EmitFunction(FunctionDecl *FD) {
Chris Lattnerd1af2d22007-05-29 23:17:50 +000022 CodeGenFunction(*this).GenerateCode(FD);
Chris Lattnerbed31442007-05-28 01:07:47 +000023}