Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / Funcall.cpp
diff options
context:
space:
mode:
1 files changed, 16 insertions, 0 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/Value/Funcall.cpp16
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Funcall.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Funcall.cpp
new file mode 100644
index 0000000..47a19af
--- /dev/null
+++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Funcall.cpp
@@ -0,0 +1,16 @@
+#include "Funcall.h"
+#include "../LLVMVisitor/LLVMVisitor.h"
+
+const std::string& Funcall::get_funname() const {
+ return funName;
+}
+
+const std::vector<Value*>& Funcall::get_args() const {
+ return args;
+}
+
+LLVMRet Funcall::Visit(LLVMVisitor& visitor) const {
+ return visitor.Visit(*this);
+}
+
+Funcall::Funcall(std::string funName, std::vector<Value*> args) : funName(funName), args(args) {}