aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-01-25 21:46:52 +0000
committerBill Wendling <isanbard@gmail.com>2013-01-25 21:46:52 +0000
commit85875647d6f85cbcbe506809640b9857eaaa26a4 (patch)
tree401571a10584a70f4a879debb71611165cf08488 /lib/IR
parent767295f1143db4ed844ea9d25f9758e624c35302 (diff)
downloadexternal_llvm-85875647d6f85cbcbe506809640b9857eaaa26a4.zip
external_llvm-85875647d6f85cbcbe506809640b9857eaaa26a4.tar.gz
external_llvm-85875647d6f85cbcbe506809640b9857eaaa26a4.tar.bz2
Use the new 'getSlotIndex' method to retrieve the attribute's slot index.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/Attributes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/IR/Attributes.cpp b/lib/IR/Attributes.cpp
index b09d55d..538d9fe 100644
--- a/lib/IR/Attributes.cpp
+++ b/lib/IR/Attributes.cpp
@@ -853,8 +853,8 @@ AttributeSet AttributeSet::removeAttr(LLVMContext &C, unsigned Idx,
void AttributeSet::dump() const {
dbgs() << "PAL[ ";
for (unsigned i = 0; i < getNumSlots(); ++i) {
- const AttributeWithIndex &PAWI = getSlot(i);
- dbgs() << "{ " << PAWI.Index << ", " << PAWI.Attrs.getAsString() << " } ";
+ unsigned Index = getSlotIndex(i);
+ dbgs() << "{ " << Index << " => " << getAsString(Index) << " } ";
}
dbgs() << "]\n";