Make getSlotAttributes return an AttributeSet instead of a wrapper list

Remove the temporary, poorly named getSlotSet method which did the same
thing. Also remove getSlotNode, which is a hold-over from when we were
dealing with AttributeSetNode* instead of AttributeSet.

llvm-svn: 301267
This commit is contained in:
Reid Kleckner
2017-04-24 22:25:02 +00:00
parent 729377f063
commit 63b26f0eea
5 changed files with 20 additions and 34 deletions

View File

@@ -779,7 +779,7 @@ void ModuleBitcodeWriter::writeAttributeTable() {
const AttributeList &A = Attrs[i];
for (unsigned i = 0, e = A.getNumSlots(); i != e; ++i)
Record.push_back(
VE.getAttributeGroupID({A.getSlotIndex(i), A.getSlotSet(i)}));
VE.getAttributeGroupID({A.getSlotIndex(i), A.getSlotAttributes(i)}));
Stream.EmitRecord(bitc::PARAMATTR_CODE_ENTRY, Record);
Record.clear();