summaryrefslogtreecommitdiff
path: root/Context.cc
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2020-05-12 01:52:49 +0800
committerNagi5Yeq <wu@x-nagi.com>2020-05-12 01:52:49 +0800
commitf146dac784325c9403499046f52f70e3596ae345 (patch)
tree4af8b76cbf83892d3cbfdda7a4b17fa8af34b4a0 /Context.cc
initial commit
Diffstat (limited to 'Context.cc')
-rw-r--r--Context.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/Context.cc b/Context.cc
new file mode 100644
index 0000000..ee88544
--- /dev/null
+++ b/Context.cc
@@ -0,0 +1,11 @@
+#include <llvm/IR/LLVMContext.h>
+
+#include "Context.hh"
+
+namespace pcc {
+llvm::LLVMContext GlobalContext;
+
+Context::Context(const char* name)
+ : builder_(GlobalContext)
+ , module_(name, GlobalContext) {}
+} // namespace pcc