summaryrefslogtreecommitdiff
path: root/Context.hh
diff options
context:
space:
mode:
Diffstat (limited to 'Context.hh')
-rw-r--r--Context.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/Context.hh b/Context.hh
index e300a19..2bbcaa4 100644
--- a/Context.hh
+++ b/Context.hh
@@ -4,20 +4,23 @@
#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/Module.h>
+#include "TypeManager.hh"
+
namespace pcc {
-using Value = llvm::Value*;
class Context {
public:
Context(const char* name);
+ TypeManager* GetTypeManager();
llvm::Module* GetModule();
llvm::IRBuilder<>* GetBuilder();
private:
+ TypeManager TypeManager_;
llvm::IRBuilder<> builder_;
llvm::Module module_;
};
-extern llvm::LLVMContext GlobalContext;
+extern llvm::LLVMContext GlobalLLVMContext;
} // namespace pcc
#endif