Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / Value / Integer.cpp
diff options
context:
space:
mode:
1 files changed, 4 insertions, 0 deletions
-rw-r--r--Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.cpp4
diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.cpp b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.cpp
index d7f70e3..01bbe54 100644
--- a/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.cpp
+++ b/Year 2/Implementation of Programming Languages/Transpiler/src/Value/Integer.cpp
@@ -5,6 +5,10 @@ std::string Integer::Visit(LLVMVisitor& visitor) const {
return visitor.Visit(*this);
}
+Value::T_Primitive Integer::RetType() const {
+ return Value::T_integer;
+}
+
const int& Integer::get_value() const {
return this->value;
}