forked from OSchip/llvm-project
parent
147ee8e34f
commit
a529ade5a4
|
@ -398,14 +398,14 @@ public:
|
|||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
} // end llvm namespace
|
||||
|
||||
AttributeListImpl::~AttributeListImpl() {
|
||||
// NOTE: Lock must be acquired by caller.
|
||||
AttributesLists->RemoveNode(this);
|
||||
}
|
||||
|
||||
|
||||
AttrListPtr AttrListPtr::get(ArrayRef<AttributeWithIndex> Attrs) {
|
||||
// If there are no attributes then return a null AttributesList pointer.
|
||||
if (Attrs.empty())
|
||||
|
@ -441,7 +441,6 @@ AttrListPtr AttrListPtr::get(ArrayRef<AttributeWithIndex> Attrs) {
|
|||
return AttrListPtr(PAL);
|
||||
}
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// AttrListPtr Method Implementations
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -481,10 +480,9 @@ const AttributeWithIndex &AttrListPtr::getSlot(unsigned Slot) const {
|
|||
return AttrList->Attrs[Slot];
|
||||
}
|
||||
|
||||
|
||||
/// getAttributes - The attributes for the specified index are
|
||||
/// returned. Attributes for the result are denoted with Idx = 0.
|
||||
/// Function notes are denoted with idx = ~0.
|
||||
/// getAttributes - The attributes for the specified index are returned.
|
||||
/// Attributes for the result are denoted with Idx = 0. Function notes are
|
||||
/// denoted with idx = ~0.
|
||||
Attributes AttrListPtr::getAttributes(unsigned Idx) const {
|
||||
if (AttrList == 0) return Attributes();
|
||||
|
||||
|
|
Loading…
Reference in New Issue