Remove dead method.
authorBill Wendling <isanbard@gmail.com>
Fri, 25 Jan 2013 23:14:36 +0000 (23:14 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 25 Jan 2013 23:14:36 +0000 (23:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173524 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Attributes.h
lib/IR/Attributes.cpp

index 37d487f0fddcbd549f8ab084d3bc5dae157f16e1..0a8df8c693009ce4ef0fc19aa50ec6c75423d74d 100644 (file)
@@ -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;
 };
 
index f44a0fc74193d48a7a97371b6bbac9a674a67585..45f81844a17b091c387faa7993af8307eb0813bf 100644 (file)
@@ -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);
 }