summaryrefslogtreecommitdiff
path: root/node/BaseNode.hh
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2020-05-12 01:52:49 +0800
committerNagi5Yeq <wu@x-nagi.com>2020-05-12 01:52:49 +0800
commitf146dac784325c9403499046f52f70e3596ae345 (patch)
tree4af8b76cbf83892d3cbfdda7a4b17fa8af34b4a0 /node/BaseNode.hh
initial commit
Diffstat (limited to 'node/BaseNode.hh')
-rw-r--r--node/BaseNode.hh21
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