aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-25 21:30:53 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-25 21:30:53 +0000
commite1f95db4803a48a30fc2a1d5868281a87a36fb85 (patch)
treeb788d661a144e15c1e5ddef5a09081338138e9b3 /include
parent1f375e5bc78647f9b29564eafdc907250ccd91ed (diff)
downloadexternal_llvm-e1f95db4803a48a30fc2a1d5868281a87a36fb85.zip
external_llvm-e1f95db4803a48a30fc2a1d5868281a87a36fb85.tar.gz
external_llvm-e1f95db4803a48a30fc2a1d5868281a87a36fb85.tar.bz2
Add an accessor method to get the slot's index. This will limit the use of AttributeWithIndex.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/Attributes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/IR/Attributes.h b/include/llvm/IR/Attributes.h
index 30129b4..29246f3 100644
--- a/include/llvm/IR/Attributes.h
+++ b/include/llvm/IR/Attributes.h
@@ -339,6 +339,9 @@ public:
/// function itself).
unsigned getNumSlots() const;
+ /// \brief Return the index for the given slot.
+ unsigned getSlotIndex(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;