add non-member begin/end methods for older compilers

This commit is contained in:
Joshua Warner 2014-12-09 11:47:36 -07:00
parent 01de3d9d5c
commit 8f797e9b4c

View File

@ -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;