diff options
author | Reid Kleckner <rnk@google.com> | 2017-03-21 17:09:20 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-03-21 17:09:20 +0000 |
commit | a3e3715c3e76f58d7714467a3255b2a68d9ede0b (patch) | |
tree | d6d5a7236bd7816827c4d7b48f535147adbd8fd1 /lldb/source/Plugins/LanguageRuntime/RenderScript | |
parent | 974a349bf8abc590f2e6a4c2a2ddc01ca05c68f2 (diff) | |
download | bcm5719-llvm-a3e3715c3e76f58d7714467a3255b2a68d9ede0b.tar.gz bcm5719-llvm-a3e3715c3e76f58d7714467a3255b2a68d9ede0b.zip |
Update for LLVM API rename of AttributeSet -> AttributeList
llvm-svn: 298399
Diffstat (limited to 'lldb/source/Plugins/LanguageRuntime/RenderScript')
-rw-r--r-- | lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp index 8a2bb3cbf3f..58428600652 100644 --- a/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp +++ b/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptx86ABIFixups.cpp @@ -248,7 +248,7 @@ bool fixupRSAllocationStructByValCalls(llvm::Module &module) { rs_functions.insert(call_inst->getCalledFunction()); // get the function attributes - llvm::AttributeSet call_attribs = call_inst->getAttributes(); + llvm::AttributeList call_attribs = call_inst->getAttributes(); // iterate over the argument attributes for (size_t i = 1; i <= call_attribs.getNumSlots(); ++i) { @@ -261,15 +261,12 @@ bool fixupRSAllocationStructByValCalls(llvm::Module &module) { } } - llvm::AttributeSet attr_byval = - llvm::AttributeSet::get(module.getContext(), 1u, llvm::Attribute::ByVal); - // for all called function decls for (auto func : rs_functions) { // inspect all of the arguments in the call for (auto &arg : func->args()) { if (arg.hasByValAttr()) { - arg.removeAttr(attr_byval); + arg.removeAttr(llvm::Attribute::ByVal)); changed = true; } } |