diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-15 21:16:26 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-15 21:16:26 +0800 |
| commit | 41f6e75e3f26bdcccfcb3910f202452e14653826 (patch) | |
| tree | 0076a928d4ac9737f8b83b7b6b0c055e5ff4f46a /node/BaseNode.hh | |
| parent | d80958f987790f533f5048c2e0e8a1cd5fd9f5a1 (diff) | |
basic support of types
Diffstat (limited to 'node/BaseNode.hh')
| -rw-r--r-- | node/BaseNode.hh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/node/BaseNode.hh b/node/BaseNode.hh index 60e25bd..4a3746c 100644 --- a/node/BaseNode.hh +++ b/node/BaseNode.hh @@ -3,17 +3,16 @@ #include <llvm/IR/Value.h> -namespace pcc { -using Value = llvm::Value*; -class Driver; +#include "Context.hh" +namespace pcc { class BaseNode { public: virtual Value CodeGen() = 0; - BaseNode(Driver* driver); + BaseNode(Context* context); protected: - Driver* driver_; + Context* context_; }; } // namespace pcc |
