Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Implementation of Programming Languages / Transpiler / src / LLVMVisitor / Register.h
diff options
context:
space:
mode:
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