diff options
author | Reid Kleckner <rnk@google.com> | 2017-05-02 22:07:37 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-05-02 22:07:37 +0000 |
commit | ee4930b6886d713778fff4de3948946c7658d9d9 (patch) | |
tree | 24f60ae0cadbe03c5b098d2c86bba5ebfd88636f /llvm/lib/IR/Function.cpp | |
parent | 65134057357725c245fcfeb4b588518ef6d6db20 (diff) | |
download | bcm5719-llvm-ee4930b6886d713778fff4de3948946c7658d9d9.tar.gz bcm5719-llvm-ee4930b6886d713778fff4de3948946c7658d9d9.zip |
Re-land r301697 "[IR] Make add/remove Attributes use AttrBuilder instead of AttributeList"
This time, I fixed, built, and tested clang.
This reverts r301712.
llvm-svn: 301981
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index fc61ba7439b..7b0838c41ab 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -328,7 +328,7 @@ void Function::addAttribute(unsigned i, Attribute Attr) { setAttributes(PAL); } -void Function::addAttributes(unsigned i, AttributeList Attrs) { +void Function::addAttributes(unsigned i, const AttrBuilder &Attrs) { AttributeList PAL = getAttributes(); PAL = PAL.addAttributes(getContext(), i, Attrs); setAttributes(PAL); @@ -346,7 +346,7 @@ void Function::removeAttribute(unsigned i, StringRef Kind) { setAttributes(PAL); } -void Function::removeAttributes(unsigned i, AttributeList Attrs) { +void Function::removeAttributes(unsigned i, const AttrBuilder &Attrs) { AttributeList PAL = getAttributes(); PAL = PAL.removeAttributes(getContext(), i, Attrs); setAttributes(PAL); |