diff options
[IPL/T] Overhauled how functions are handled, added list type
1 files changed, 5 insertions, 1 deletions
| -rw-r--r-- | Year 2/Implementation of Programming Languages/Transpiler/src/LLVMVisitor/Register.h | 6 |
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 <string> +#include <ostream> 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 |
