Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / Funcall.h
blob: 4b7b826d1e71db2565af432482a77622f8cc1844 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef VALUE_FUNCALL
#define VALUE_FUNCALL

#include <vector>
#include "Value.h"

class Funcall : public Value {
	std::string funName;
	std::vector<Value*> args;
public:
	const std::string& get_funname() const;
	const std::vector<Value*>& get_args() const;

	LLVMRet Visit(LLVMVisitor& visitor) const override;

	Funcall(std::string funName, std::vector<Value*> args);
	~Funcall() override = default;
};

#endif