diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-10-01 12:44:28 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-10-01 12:44:28 +0000 |
commit | 405ca137a1bf5b08fbda3ba086fb013537ce8662 (patch) | |
tree | 82790712fb3d3ce5ab349a5656c28e72c8ce5924 /lib/Target/ARM/ARMConstantPoolValue.h | |
parent | 3320f2a3bfd4daec23ba7ceb50525140cc6316da (diff) | |
download | llvm-405ca137a1bf5b08fbda3ba086fb013537ce8662.tar.gz llvm-405ca137a1bf5b08fbda3ba086fb013537ce8662.tar.bz2 llvm-405ca137a1bf5b08fbda3ba086fb013537ce8662.tar.xz |
Add a convenience method to tell if two things are equal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantPoolValue.h')
-rw-r--r-- | lib/Target/ARM/ARMConstantPoolValue.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMConstantPoolValue.h b/lib/Target/ARM/ARMConstantPoolValue.h index f1176f60fb..0d0def32b7 100644 --- a/lib/Target/ARM/ARMConstantPoolValue.h +++ b/lib/Target/ARM/ARMConstantPoolValue.h @@ -93,6 +93,12 @@ public: /// constantpool entry as another ARM constpool value. virtual bool hasSameValue(ARMConstantPoolValue *ACPV); + bool equals(const ARMConstantPoolValue *A) const { + return this->LabelId == A->LabelId && + this->PCAdjust == A->PCAdjust && + this->Modifier == A->Modifier; + } + virtual void print(raw_ostream &O) const; void print(raw_ostream *O) const { if (O) print(*O); } void dump() const; |