void Profile(FoldingSetNodeID &ID) const {
ID.AddPointer(pImpl);
}
-
- // FIXME: Remove this.
- uint64_t Raw() const;
};
//===----------------------------------------------------------------------===//
typedef ArrayRef<Attribute>::iterator iterator;
- iterator begin(unsigned Idx);
- iterator end(unsigned Idx);
+ iterator begin(unsigned Idx) const;
+ iterator end(unsigned Idx) const;
/// operator==/!= - Provide equality predicates.
bool operator==(const AttributeSet &RHS) const {
return *pImpl < *A.pImpl;
}
-uint64_t Attribute::Raw() const {
- return pImpl ? pImpl->Raw() : 0;
-}
-
//===----------------------------------------------------------------------===//
// AttributeImpl Definition
//===----------------------------------------------------------------------===//
return ThisCDA->getAsString() < ThatCDA->getAsString();
}
-uint64_t AttributeImpl::Raw() const {
- // FIXME: Remove this.
- return cast<ConstantInt>(Kind)->getZExtValue();
-}
-
uint64_t AttributeImpl::getAttrMask(Attribute::AttrKind Val) {
// FIXME: Remove this.
switch (Val) {
return 0;
}
-AttributeSet::iterator AttributeSet::begin(unsigned Idx) {
+AttributeSet::iterator AttributeSet::begin(unsigned Idx) const {
if (!pImpl)
return ArrayRef<Attribute>().begin();
return pImpl->begin(Idx);
}
-AttributeSet::iterator AttributeSet::end(unsigned Idx) {
+AttributeSet::iterator AttributeSet::end(unsigned Idx) const {
if (!pImpl)
return ArrayRef<Attribute>().end();
return pImpl->end(Idx);