mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 02:25:19 +00:00
Remove one of the odious 'Raw' methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -223,10 +223,6 @@ bool Attribute::operator<(Attribute A) const {
|
||||
return *pImpl < *A.pImpl;
|
||||
}
|
||||
|
||||
uint64_t Attribute::Raw() const {
|
||||
return pImpl ? pImpl->Raw() : 0;
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// AttributeImpl Definition
|
||||
//===----------------------------------------------------------------------===//
|
||||
@@ -308,11 +304,6 @@ bool AttributeImpl::operator<(const AttributeImpl &AI) const {
|
||||
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) {
|
||||
@@ -740,13 +731,13 @@ AttributeSetNode *AttributeSet::getAttributes(unsigned Idx) const {
|
||||
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);
|
||||
|
Reference in New Issue
Block a user