From 8f797e9b4ccd7da7d5926d9e40d770e4fe23929d Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Tue, 9 Dec 2014 11:47:36 -0700 Subject: [PATCH] add non-member begin/end methods for older compilers --- include/avian/codegen/registers.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/avian/codegen/registers.h b/include/avian/codegen/registers.h index 5cafcc724c..366fbde2f2 100644 --- a/include/avian/codegen/registers.h +++ b/include/avian/codegen/registers.h @@ -184,6 +184,14 @@ inline RegisterIterator BoundedRegisterMask::end() const { return RegisterIterator(start - 1, -1, start - 1, *this); } +inline RegisterIterator begin(BoundedRegisterMask mask) { + return mask.begin(); +} + +inline RegisterIterator end(BoundedRegisterMask mask) { + return mask.end(); +} + class RegisterFile { public: BoundedRegisterMask allRegisters;