blob: ebb3e797e136149bdc855e54a8c989998846bf6c [file] [log] [blame]
Chris Lattnerbed31442007-05-28 01:07:47 +00001//===--- CodeGenFunction.h - Per-Function state for LLVM CodeGen ----------===//
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 is the internal per-function state used for llvm translation.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef CODEGEN_CODEGENFUNCTION_H
15#define CODEGEN_CODEGENFUNCTION_H
16
17namespace llvm {
18 class Module;
19namespace clang {
20 class ASTContext;
21 class FunctionDecl;
22
23namespace CodeGen {
24 class CodeGenModule;
25
26/// CodeGenFunction - This class organizes the per-function state that is used
27/// while generating LLVM code.
28class CodeGenFunction {
29 CodeGenModule &CGM; // Per-module state.
30public:
31 CodeGenFunction(CodeGenModule &cgm) : CGM(cgm) {}
32
33};
34} // end namespace CodeGen
35} // end namespace clang
36} // end namespace llvm
37
38#endif