diff --git a/llvm/include/llvm/IR/Attributes.h b/llvm/include/llvm/IR/Attributes.h index 0156fd91e37e2..236056612ee33 100644 --- a/llvm/include/llvm/IR/Attributes.h +++ b/llvm/include/llvm/IR/Attributes.h @@ -1048,9 +1048,6 @@ class AttrBuilder { 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); diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index 0960e5db289a7..fa8cc44083a61 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -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;