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/LLVMVisitor/Register.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Year 2/Implementation of Programming Languages/Transpiler/src/LLVMVisitor/Register.h') diff --git a/Year 2/Implementation of Programming Languages/Transpiler/src/LLVMVisitor/Register.h b/Year 2/Implementation of Programming Languages/Transpiler/src/LLVMVisitor/Register.h index 768cfbc..ff51129 100644 --- a/Year 2/Implementation of Programming Languages/Transpiler/src/LLVMVisitor/Register.h +++ b/Year 2/Implementation of Programming Languages/Transpiler/src/LLVMVisitor/Register.h @@ -2,6 +2,7 @@ #define LLVMVISITOR_REGISTER #include +#include class Register { std::string prepend; @@ -11,7 +12,10 @@ public: Register(std::string prepend); Register& operator++(); Register operator++(int); - std::string operator*(); + std::string operator*() const; + void reset(); }; +std::ostream& operator<<(std::ostream& ostr, const Register& reg); + #endif -- cgit v1.3.1-26-gb76a