diff options
Diffstat (limited to 'llvm/lib/IR/AttributeImpl.h')
-rw-r--r-- | llvm/lib/IR/AttributeImpl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/AttributeImpl.h b/llvm/lib/IR/AttributeImpl.h index b35e5e0f0b3..ebd90e29e21 100644 --- a/llvm/lib/IR/AttributeImpl.h +++ b/llvm/lib/IR/AttributeImpl.h @@ -122,6 +122,10 @@ public: LLVMContext &getContext() { return Context; } ArrayRef<AttributeWithIndex> getAttributes() const { return AttrList; } unsigned getNumAttributes() const { return AttrList.size(); } + unsigned getSlotIndex(unsigned Slot) const { + // FIXME: This needs to use AttrNodes instead. + return AttrList[Slot].Index; + } void Profile(FoldingSetNodeID &ID) const { Profile(ID, AttrList); |