From 4d359b9c16b01847b26d6827e137f680c65969f2 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 7 Feb 2023 20:06:31 +0200 Subject: [IPL/T] Overhauled how functions are handled, added list type --- .../Transpiler/src/Value/Float.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp index 91268d7..d3a3c04 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Float.cpp @@ -1,14 +1,10 @@ #include "Float.h" #include "../LLVMVisitor/LLVMVisitor.h" -std::string Float::Visit(LLVMVisitor& visitor) const { +LLVMRet Float::Visit(LLVMVisitor& visitor) const { return visitor.Visit(*this); } -Value::T_Primitive Float::RetType() const { - return Value::T_float; -} - const double& Float::get_value() const { return this->value; } -- cgit v1.3.1-23-gd82d