aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenTypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'CodeGen/CodeGenTypes.h')
-rw-r--r--CodeGen/CodeGenTypes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/CodeGen/CodeGenTypes.h b/CodeGen/CodeGenTypes.h
index 3d8756415b..1b49dce0c3 100644
--- a/CodeGen/CodeGenTypes.h
+++ b/CodeGen/CodeGenTypes.h
@@ -21,6 +21,7 @@ namespace llvm {
}
namespace clang {
+ class ASTContext;
class TargetInfo;
class QualType;
class FunctionTypeProto;
@@ -30,10 +31,11 @@ namespace CodeGen {
/// CodeGenTypes - This class organizes the cross-module state that is used
/// while lowering AST types to LLVM types.
class CodeGenTypes {
+ ASTContext &Context;
TargetInfo &Target;
public:
- CodeGenTypes(TargetInfo &target) : Target(target) {}
+ CodeGenTypes(ASTContext &Ctx);
TargetInfo &getTarget() const { return Target; }