Remove the 'contains' methods in favor of the 'operator==' method.

The 'operator==' method is a bit clearer and much less verbose for somethings
that should have only one value. Remove from the AttrBuilder for consistency.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2013-01-03 01:43:05 +00:00
parent 3ac03815e1
commit 8351a60d6d
3 changed files with 22 additions and 23 deletions

View File

@@ -179,9 +179,6 @@ public:
/// removeAttribute - Remove the attributes from A from the builder.
AttrBuilder &removeAttributes(const Attribute &A);
/// \brief Return true if the builder has the specified attribute.
bool contains(Attribute::AttrKind A) const;
/// hasAttributes - Return true if the builder has IR-level attributes.
bool hasAttributes() const;
@@ -242,6 +239,9 @@ public:
bool operator!=(const AttrBuilder &B) {
return Bits != B.Bits;
}
bool operator==(Attribute::AttrKind A) const;
bool operator!=(Attribute::AttrKind A) const;
};
//===----------------------------------------------------------------------===//