arm_types: Provide the not-equals operator overload for LocationDescriptor

Generally if == has an overload, != should be provided for symmetry.
This commit is contained in:
Lioncash 2016-08-25 08:23:26 -04:00 committed by MerryMage
parent 13908c5a58
commit 1d8432487d

View file

@ -86,6 +86,10 @@ struct LocationDescriptor {
return std::tie(arm_pc, tflag, eflag, fpscr) == std::tie(o.arm_pc, o.tflag, o.eflag, o.fpscr); return std::tie(arm_pc, tflag, eflag, fpscr) == std::tie(o.arm_pc, o.tflag, o.eflag, o.fpscr);
} }
bool operator != (const LocationDescriptor& o) const {
return !operator==(o);
}
LocationDescriptor SetPC(u32 new_arm_pc) const { LocationDescriptor SetPC(u32 new_arm_pc) const {
return LocationDescriptor(new_arm_pc, tflag, eflag, fpscr); return LocationDescriptor(new_arm_pc, tflag, eflag, fpscr);
} }