mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
Reference in New Issue
Block a user