[llvm-commits] [llvm] r173524 - Remove dead method.
Bill Wendling
isanbard at gmail.com
Fri Jan 25 15:14:36 PST 2013
Author: void
Date: Fri Jan 25 17:14:36 2013
New Revision: 173524
URL: http://llvm.org/viewvc/llvm-project?rev=173524&view=rev
Log:
Remove dead method.
Modified:
llvm/trunk/include/llvm/IR/Attributes.h
llvm/trunk/lib/IR/Attributes.cpp
Modified: llvm/trunk/include/llvm/IR/Attributes.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Attributes.h?rev=173524&r1=173523&r2=173524&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Attributes.h (original)
+++ llvm/trunk/include/llvm/IR/Attributes.h Fri Jan 25 17:14:36 2013
@@ -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;
};
Modified: llvm/trunk/lib/IR/Attributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Attributes.cpp?rev=173524&r1=173523&r2=173524&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Attributes.cpp (original)
+++ llvm/trunk/lib/IR/Attributes.cpp Fri Jan 25 17:14:36 2013
@@ -649,14 +649,6 @@ AttributeSet AttributeSet::getSlotAttrib
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);
}
More information about the llvm-commits
mailing list