Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / Name.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 6 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.cpp7
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.cpp
index 52094b9..cd92df3 100644
--- a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.cpp
+++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Name.cpp
@@ -1,17 +1,12 @@
#include "Name.h"
-#include "Value.h"
#include "../LLVMVisitor/LLVMVisitor.h"
const std::string& Name::get_value() const {
return val;
}
-std::string Name::Visit(LLVMVisitor& visitor) const {
+LLVMRet Name::Visit(LLVMVisitor& visitor) const {
return visitor.Visit(*this);
}
-Value::T_Primitive Name::RetType() const {
- return T_name;
-}
-
Name::Name(std::string val) : val(val) {}