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 /node/BaseNode.hh | |
initial commit
Diffstat (limited to 'node/BaseNode.hh')
| -rw-r--r-- | node/BaseNode.hh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/node/BaseNode.hh b/node/BaseNode.hh new file mode 100644 index 0000000..ae0ccea --- /dev/null +++ b/node/BaseNode.hh @@ -0,0 +1,21 @@ +#ifndef PCC_BASE_H +#define PCC_BASE_H + +#include <llvm/IR/Value.h> + +#include "Driver.hh" + +namespace pcc { +using Value = llvm::Value*; + +class BaseNode { + public: + virtual Value CodeGen() = 0; + BaseNode(Driver* driver); + + protected: + Driver* driver_; +}; +} // namespace pcc + +#endif |
