diff options
Diffstat (limited to 'lib/IR/AttributeImpl.h')
-rw-r--r-- | lib/IR/AttributeImpl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/IR/AttributeImpl.h b/lib/IR/AttributeImpl.h index b35e5e0..ebd90e2 100644 --- a/lib/IR/AttributeImpl.h +++ b/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); |