diff options
| author | Hans Wennborg <hans@hanshq.net> | 2017-04-28 23:01:32 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2017-04-28 23:01:32 +0000 |
| commit | 0f88d863b477afef36f02fd11a96abd9eb5563a5 (patch) | |
| tree | 564f3c06fa76fd25d150342cb55ba3f8785e5421 /llvm/lib/Target | |
| parent | e0f9e984fd7e6c02016b16eb355e788a645091ee (diff) | |
| download | bcm5719-llvm-0f88d863b477afef36f02fd11a96abd9eb5563a5.tar.gz bcm5719-llvm-0f88d863b477afef36f02fd11a96abd9eb5563a5.zip | |
Revert r301697 "[IR] Make add/remove Attributes use AttrBuilder instead of AttributeList"
This broke the Clang build. (Clang-side patch missing?)
Original commit message:
> [IR] Make add/remove Attributes use AttrBuilder instead of
> AttributeList
>
> This change cleans up call sites and avoids creating temporary
> AttributeList objects.
>
> NFC
llvm-svn: 301712
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Mips/Mips16HardFloat.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/Target/Mips/Mips16HardFloat.cpp b/llvm/lib/Target/Mips/Mips16HardFloat.cpp index 5a394fe02f1..a71b161b24c 100644 --- a/llvm/lib/Target/Mips/Mips16HardFloat.cpp +++ b/llvm/lib/Target/Mips/Mips16HardFloat.cpp @@ -490,14 +490,15 @@ static void createFPFnStub(Function *F, Module *M, FPParamVariant PV, // remove the use-soft-float attribute // static void removeUseSoftFloat(Function &F) { - AttrBuilder B; + AttributeList A; DEBUG(errs() << "removing -use-soft-float\n"); - B.addAttribute("use-soft-float", "false"); - F.removeAttributes(AttributeList::FunctionIndex, B); + A = A.addAttribute(F.getContext(), AttributeList::FunctionIndex, + "use-soft-float", "false"); + F.removeAttributes(AttributeList::FunctionIndex, A); if (F.hasFnAttribute("use-soft-float")) { DEBUG(errs() << "still has -use-soft-float\n"); } - F.addAttributes(AttributeList::FunctionIndex, B); + F.addAttributes(AttributeList::FunctionIndex, A); } |

