summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-01 00:48:14 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-01 00:48:14 +0000
commit3f9fcd48a4d4556e70c346fb9d2769302313e83b (patch)
treeb81f8e2e13b277ddd1bb4edce978bb9495fe7869
parent13fbb991077f389d2b3cbb5f5673ad0d815af709 (diff)
downloadbcm5719-llvm-3f9fcd48a4d4556e70c346fb9d2769302313e83b.tar.gz
bcm5719-llvm-3f9fcd48a4d4556e70c346fb9d2769302313e83b.zip
Remove one of the odious 'Raw' methods.
llvm-svn: 174130
-rw-r--r--llvm/include/llvm/IR/Attributes.h7
-rw-r--r--llvm/lib/IR/AttributeImpl.h3
-rw-r--r--llvm/lib/IR/Attributes.cpp13
3 files changed, 5 insertions, 18 deletions
diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h
index 49ef884b702..63fd4fb1edc 100644
--- a/llvm/include/llvm/IR/Attributes.h
+++ b/llvm/include/llvm/IR/Attributes.h
@@ -159,9 +159,6 @@ public:
void Profile(FoldingSetNodeID &ID) const {
ID.AddPointer(pImpl);
}
-
- // FIXME: Remove this.
- uint64_t Raw() const;
};
//===----------------------------------------------------------------------===//
@@ -272,8 +269,8 @@ public:
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 {
diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h
index e9525785a20..2eb7f075e32 100644
--- a/llvm/lib/IR/AttributeImpl.h
+++ b/llvm/lib/IR/AttributeImpl.h
@@ -77,8 +77,7 @@ public:
ID.AddPointer(Vals[I]);
}
- // FIXME: Remove these!
- uint64_t Raw() const;
+ // FIXME: Remove this!
static uint64_t getAttrMask(Attribute::AttrKind Val);
};
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 01e0235b576..68b831d554d 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -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);
OpenPOWER on IntegriCloud