From 1d8432487da06982a0b2171b5ff57d3a20afd103 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 25 Aug 2016 08:23:26 -0400 Subject: [PATCH] arm_types: Provide the not-equals operator overload for LocationDescriptor Generally if == has an overload, != should be provided for symmetry. --- src/frontend/arm_types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/arm_types.h b/src/frontend/arm_types.h index 32da1c33..348441c5 100644 --- a/src/frontend/arm_types.h +++ b/src/frontend/arm_types.h @@ -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); } + bool operator != (const LocationDescriptor& o) const { + return !operator==(o); + } + LocationDescriptor SetPC(u32 new_arm_pc) const { return LocationDescriptor(new_arm_pc, tflag, eflag, fpscr); }