summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/CodeGen/CodeGenFunction.h10
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
OpenPOWER on IntegriCloud