diff options
author | Reid Kleckner <rnk@google.com> | 2017-04-28 17:58:18 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-04-28 17:58:18 +0000 |
commit | 6a752c4d30a424e11bbd40d41aca163805b79bdb (patch) | |
tree | 602994ebfda36ee28c4aee5ba63d51f4804a13e4 /llvm/lib/IR/Function.cpp | |
parent | 109b2368507f9ddc20af3f0823f11496e0d63bc9 (diff) | |
download | bcm5719-llvm-6a752c4d30a424e11bbd40d41aca163805b79bdb.tar.gz bcm5719-llvm-6a752c4d30a424e11bbd40d41aca163805b79bdb.zip |
[IR] Delete unused Argument::removeAttr overload
It doesn't make sense to remove an AttributeList from an argument.
llvm-svn: 301663
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index e1f5fdea44e..12f52a3a892 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -152,15 +152,6 @@ void Argument::addAttr(Attribute Attr) { getParent()->addAttribute(getArgNo() + 1, Attr); } -void Argument::removeAttr(AttributeList AS) { - assert(AS.getNumSlots() <= 1 && - "Trying to remove more than one attribute set from an argument!"); - AttrBuilder B(AS, AS.getSlotIndex(0)); - getParent()->removeAttributes( - getArgNo() + 1, - AttributeList::get(Parent->getContext(), getArgNo() + 1, B)); -} - void Argument::removeAttr(Attribute::AttrKind Kind) { getParent()->removeAttribute(getArgNo() + 1, Kind); } |