diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-01-31 06:22:35 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-01-31 06:22:35 +0000 |
commit | d471863c1ef5e962919d774a30cac8a7ff0b2f3b (patch) | |
tree | c0438201e63f447dfaa0fa72f5c64034db70201e /llvm/lib/IR/Attributes.cpp | |
parent | 4bca85204e95e4aedcc57e4fbedf48714adbe69e (diff) | |
download | bcm5719-llvm-d471863c1ef5e962919d774a30cac8a7ff0b2f3b.tar.gz bcm5719-llvm-d471863c1ef5e962919d774a30cac8a7ff0b2f3b.zip |
Remove the Attribute::hasAttributes() function.
That function doesn't make sense anymore because there's only one attribute per
Attribute object now.
llvm-svn: 174044
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 98c12b5d855..3a8cfe5ba69 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -82,10 +82,6 @@ bool Attribute::hasAttribute(AttrKind Val) const { return pImpl && pImpl->hasAttribute(Val); } -bool Attribute::hasAttributes() const { - return pImpl && pImpl->hasAttributes(); -} - Constant *Attribute::getAttributeKind() const { return pImpl ? pImpl->getAttributeKind() : 0; } @@ -226,10 +222,6 @@ bool AttributeImpl::hasAttribute(Attribute::AttrKind A) const { return (Raw() & getAttrMask(A)) != 0; } -bool AttributeImpl::hasAttributes() const { - return Raw() != 0; -} - uint64_t AttributeImpl::getAlignment() const { uint64_t Mask = Raw() & getAttrMask(Attribute::Alignment); return 1ULL << ((Mask >> 16) - 1); @@ -454,7 +446,7 @@ AttributeSet AttributeSet::get(LLVMContext &C, for (unsigned i = 0, e = Attrs.size(); i != e; ++i) { assert((!i || Attrs[i-1].first <= Attrs[i].first) && "Misordered Attributes list!"); - assert(Attrs[i].second.hasAttributes() && + assert(Attrs[i].second != Attribute::None && "Pointless attribute!"); } #endif |