diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-12 01:52:49 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-12 01:52:49 +0800 |
| commit | f146dac784325c9403499046f52f70e3596ae345 (patch) | |
| tree | 4af8b76cbf83892d3cbfdda7a4b17fa8af34b4a0 /Context.cc | |
initial commit
Diffstat (limited to 'Context.cc')
| -rw-r--r-- | Context.cc | 11 |
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 |
