diff options
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 |
