diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-03 01:43:05 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-03 01:43:05 +0000 |
commit | af9a90cc00de1bfd8828d74551cbfbc9825a6d64 (patch) | |
tree | 9a141ef0987400ba6b6aac81873a9ef168ee1b8b /llvm/lib/IR/AttributeImpl.h | |
parent | cedab7ecf3533450a25a723d2856b927683f38de (diff) | |
download | bcm5719-llvm-af9a90cc00de1bfd8828d74551cbfbc9825a6d64.tar.gz bcm5719-llvm-af9a90cc00de1bfd8828d74551cbfbc9825a6d64.zip |
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.
llvm-svn: 171442
Diffstat (limited to 'llvm/lib/IR/AttributeImpl.h')
-rw-r--r-- | llvm/lib/IR/AttributeImpl.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h index 2633608926f..015bb9df3e6 100644 --- a/llvm/lib/IR/AttributeImpl.h +++ b/llvm/lib/IR/AttributeImpl.h @@ -42,9 +42,6 @@ public: return Vals; } - bool contains(Attribute::AttrKind Kind) const; - bool contains(StringRef Kind) const; - bool hasAttribute(Attribute::AttrKind A) const; bool hasAttributes() const; @@ -53,19 +50,11 @@ public: uint64_t getAlignment() const; uint64_t getStackAlignment() const; - bool operator==(Attribute::AttrKind Kind) const { - return contains(Kind); - } - bool operator!=(Attribute::AttrKind Kind) const { - return !contains(Kind); - } + bool operator==(Attribute::AttrKind Kind) const; + bool operator!=(Attribute::AttrKind Kind) const; - bool operator==(StringRef Kind) const { - return contains(Kind); - } - bool operator!=(StringRef Kind) const { - return !contains(Kind); - } + bool operator==(StringRef Kind) const; + bool operator!=(StringRef Kind) const; uint64_t getBitMask() const; // FIXME: Remove. |