summaryrefslogtreecommitdiff
path: root/Context.hh
blob: bc66632d27b24eaab81f2a91c8db019f49fcd9d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef PCC_CONTEXT_H
#define PCC_CONTEXT_H

#include <llvm/IR/IRBuilder.h>
#include <llvm/IR/Module.h>

namespace pcc {
class Driver;
class Context {
  public:
    Context(const char* name);

  private:
    llvm::IRBuilder<> builder_;
    llvm::Module module_;
    friend class Driver;
};

extern llvm::LLVMContext GlobalContext;
} // namespace pcc

#endif