Chris Lattner | bed3144 | 2007-05-28 01:07:47 +0000 | [diff] [blame^] | 1 | //===--- 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 | |
| 17 | namespace llvm { |
| 18 | class Module; |
| 19 | namespace clang { |
| 20 | class ASTContext; |
| 21 | class FunctionDecl; |
| 22 | |
| 23 | namespace CodeGen { |
| 24 | class CodeGenModule; |
| 25 | |
| 26 | /// CodeGenFunction - This class organizes the per-function state that is used |
| 27 | /// while generating LLVM code. |
| 28 | class CodeGenFunction { |
| 29 | CodeGenModule &CGM; // Per-module state. |
| 30 | public: |
| 31 | CodeGenFunction(CodeGenModule &cgm) : CGM(cgm) {} |
| 32 | |
| 33 | }; |
| 34 | } // end namespace CodeGen |
| 35 | } // end namespace clang |
| 36 | } // end namespace llvm |
| 37 | |
| 38 | #endif |