Function::getArgumentList() doesn't exist anymore, switch to using
arg_begin() (existed back to at least llvm-3.6.0).
Reviewed-by: Vedran Miletić <vedran@miletic.net>
CC: <mesa-stable@lists.freedesktop.org>
IRB()->SetInsertPoint(entry);
// arguments
- auto argitr = blendFunc->getArgumentList().begin();
+ auto argitr = blendFunc->arg_begin();
Value* pBlendState = &*argitr++;
pBlendState->setName("pBlendState");
Value* pSrc = &*argitr++;
IRB()->SetInsertPoint(entry);
- auto argitr = fetch->getArgumentList().begin();
+ auto argitr = fetch->arg_begin();
// Fetch shader arguments
mpFetchInfo = &*argitr; ++argitr;
IRB()->SetInsertPoint(entry);
// arguments
- auto argitr = soFunc->getArgumentList().begin();
+ auto argitr = soFunc->arg_begin();
Value* pSoCtx = &*argitr++;
pSoCtx->setName("pSoCtx");