diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-29 23:17:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-29 23:17:50 +0000 |
commit | d1af2d2956e829ab16a124fbad1ecd65d81af234 (patch) | |
tree | aabd57f22564ce994ecaa98761de93e895ec46b7 /clang/CodeGen/CodeGenFunction.h | |
parent | 2a8ad18e7118008528f7002ee23236b7cec796fc (diff) | |
download | bcm5719-llvm-d1af2d2956e829ab16a124fbad1ecd65d81af234.tar.gz bcm5719-llvm-d1af2d2956e829ab16a124fbad1ecd65d81af234.zip |
Implement conversion of clang ast types to LLVM types, at least for some trivial
cases.
llvm-svn: 39519
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/CodeGen/CodeGenFunction.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/CodeGen/CodeGenFunction.h b/clang/CodeGen/CodeGenFunction.h index ebb3e797e13..e7b1a05ebcc 100644 --- a/clang/CodeGen/CodeGenFunction.h +++ b/clang/CodeGen/CodeGenFunction.h @@ -16,9 +16,13 @@ namespace llvm { class Module; + class Type; namespace clang { class ASTContext; class FunctionDecl; + class QualType; + class SourceLocation; + class TargetInfo; namespace CodeGen { class CodeGenModule; @@ -27,9 +31,13 @@ namespace CodeGen { /// while generating LLVM code. class CodeGenFunction { CodeGenModule &CGM; // Per-module state. + TargetInfo &Target; public: - CodeGenFunction(CodeGenModule &cgm) : CGM(cgm) {} + CodeGenFunction(CodeGenModule &cgm); + const llvm::Type *ConvertType(QualType T, SourceLocation Loc); + + void GenerateCode(FunctionDecl *FD); }; } // end namespace CodeGen } // end namespace clang |