forked from OSchip/llvm-project
[AttrBuilder] Remove unused removeAttributes() overload
The idiomatic way would be to call remove() with an AttributeMask constructed from an AttributeSet.
This commit is contained in:
parent
7cbbef5bbc
commit
0d7fbb0737
|
@ -1048,9 +1048,6 @@ public:
|
|||
return removeAttribute(A.getKindAsEnum());
|
||||
}
|
||||
|
||||
/// Remove the attributes from the builder.
|
||||
AttrBuilder &removeAttributes(AttributeList A, uint64_t WithoutIndex);
|
||||
|
||||
/// Add the attributes from the builder.
|
||||
AttrBuilder &merge(const AttrBuilder &B);
|
||||
|
||||
|
|
|
@ -1608,11 +1608,6 @@ AttrBuilder &AttrBuilder::addAttribute(StringRef A, StringRef V) {
|
|||
return addAttribute(Attribute::get(Ctx, A, V));
|
||||
}
|
||||
|
||||
AttrBuilder &AttrBuilder::removeAttributes(AttributeList AL, uint64_t Index) {
|
||||
remove(AttributeMask(AL.getAttributes(Index)));
|
||||
return *this;
|
||||
}
|
||||
|
||||
AttrBuilder &AttrBuilder::removeAttribute(Attribute::AttrKind Val) {
|
||||
assert((unsigned)Val < Attribute::EndAttrKinds && "Attribute out of range!");
|
||||
Attrs[Val] = false;
|
||||
|
|
Loading…
Reference in New Issue