swr: [rasterizer jitter] fix llvm >= 5.0 build break
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 21 Mar 2017 16:42:31 +0000 (11:42 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 22 Mar 2017 18:45:35 +0000 (13:45 -0500)
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>
src/gallium/drivers/swr/rasterizer/jitter/blend_jit.cpp
src/gallium/drivers/swr/rasterizer/jitter/fetch_jit.cpp
src/gallium/drivers/swr/rasterizer/jitter/streamout_jit.cpp

index 1c2c8df197701a5ffe0e3de501dcb07d631381da..5daeea95d195b2b3fdbbc8620f3747073b65c208 100644 (file)
@@ -542,7 +542,7 @@ struct BlendJit : public Builder
         IRB()->SetInsertPoint(entry);
 
         // arguments
-        auto argitr = blendFunc->getArgumentList().begin();
+        auto argitr = blendFunc->arg_begin();
         Value* pBlendState = &*argitr++;
         pBlendState->setName("pBlendState");
         Value* pSrc = &*argitr++;
index d8eb5309d7c4acab3485dfafc47493f2fc57c2b6..8fc31ae9c6ceaf8d59dfd46734da78648fcbf685 100644 (file)
@@ -99,7 +99,7 @@ Function* FetchJit::Create(const FETCH_COMPILE_STATE& fetchState)
 
     IRB()->SetInsertPoint(entry);
 
-    auto    argitr = fetch->getArgumentList().begin();
+    auto    argitr = fetch->arg_begin();
 
     // Fetch shader arguments
     mpFetchInfo = &*argitr; ++argitr;
index 494d8cfc89d026cfef143442a3e5269765d2ab05..2c19321fb3fd65ccfcf3bbebdb1423f7410000fa 100644 (file)
@@ -285,7 +285,7 @@ struct StreamOutJit : public Builder
         IRB()->SetInsertPoint(entry);
 
         // arguments
-        auto argitr = soFunc->getArgumentList().begin();
+        auto argitr = soFunc->arg_begin();
         Value* pSoCtx = &*argitr++;
         pSoCtx->setName("pSoCtx");