Skip to content

Commit 0d7fbb0

Browse files
committed
[AttrBuilder] Remove unused removeAttributes() overload
The idiomatic way would be to call remove() with an AttributeMask constructed from an AttributeSet.
1 parent 7cbbef5 commit 0d7fbb0

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

llvm/include/llvm/IR/Attributes.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,9 +1048,6 @@ class AttrBuilder {
10481048
return removeAttribute(A.getKindAsEnum());
10491049
}
10501050

1051-
/// Remove the attributes from the builder.
1052-
AttrBuilder &removeAttributes(AttributeList A, uint64_t WithoutIndex);
1053-
10541051
/// Add the attributes from the builder.
10551052
AttrBuilder &merge(const AttrBuilder &B);
10561053

llvm/lib/IR/Attributes.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1608,11 +1608,6 @@ AttrBuilder &AttrBuilder::addAttribute(StringRef A, StringRef V) {
16081608
return addAttribute(Attribute::get(Ctx, A, V));
16091609
}
16101610

1611-
AttrBuilder &AttrBuilder::removeAttributes(AttributeList AL, uint64_t Index) {
1612-
remove(AttributeMask(AL.getAttributes(Index)));
1613-
return *this;
1614-
}
1615-
16161611
AttrBuilder &AttrBuilder::removeAttribute(Attribute::AttrKind Val) {
16171612
assert((unsigned)Val < Attribute::EndAttrKinds && "Attribute out of range!");
16181613
Attrs[Val] = false;

0 commit comments

Comments
 (0)