aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-25 23:14:36 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-25 23:14:36 +0000
commit483bbd36b8b3f87073feea2e1096f188d0e735b8 (patch)
tree2460e7154f63540f2ae2492566a0d4af021606e0
parent8e47daf2858e980210f3e1f007036b24da342c29 (diff)
Remove dead method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173524 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/IR/Attributes.h4
-rw-r--r--lib/IR/Attributes.cpp8
2 files changed, 0 insertions, 12 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 37d487f0fd..0a8df8c693 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -336,10 +336,6 @@ public:
/// \brief Return the attributes at the given slot.
AttributeSet getSlotAttributes(unsigned Slot) const;
- /// \brief Return the AttributeWithIndex at the specified slot. This holds a
- /// index number plus a set of attributes.
- const AttributeWithIndex &getSlot(unsigned Slot) const;
-
void dump() const;
};
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp
index f44a0fc741..45f81844a1 100644
--- a/lib/IR/Attributes.cpp
+++ b/lib/IR/Attributes.cpp
@@ -649,14 +649,6 @@ AttributeSet AttributeSet::getSlotAttributes(unsigned Slot) const {
return AttrList->getSlotAttributes(Slot);
}
-/// getSlot - Return the AttributeWithIndex at the specified slot. This
-/// holds a number plus a set of attributes.
-const AttributeWithIndex &AttributeSet::getSlot(unsigned Slot) const {
- assert(AttrList && Slot < AttrList->getNumAttributes() &&
- "Slot # out of range!");
- return AttrList->getAttributes()[Slot];
-}
-
bool AttributeSet::hasAttribute(unsigned Index, Attribute::AttrKind Kind) const{
return getAttributes(Index).hasAttribute(Kind);
}