swr/rast: Fix addPassesToEmitFile usage with llvm-7.0.
authorVinson Lee <vlee@freedesktop.org>
Mon, 25 Jun 2018 14:52:19 +0000 (09:52 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 28 Jun 2018 13:18:06 +0000 (08:18 -0500)
commitf90a60fe7951c7cd063581770e7a3860c253ced3
treea7eca7f82e652eb96a3ce07146872a505a148dd7
parentc7e9102d891e1014dc3d3fc62490a9cb79bcef4e
swr/rast: Fix addPassesToEmitFile usage with llvm-7.0.

Fix build error after llvm-7.0svn r332881 ("CodeGen: Add a dwo output
file argument to addPassesToEmitFile and hook it up to dwo output.").

  CXX      rasterizer/jitter/libmesaswr_la-JitManager.lo
rasterizer/jitter/JitManager.cpp:368:93: error: too few arguments to function call, expected at least 4, have 3
        pTarget->addPassesToEmitFile(*pMPasses, filestream, TargetMachine::CGFT_AssemblyFile);
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                        ^

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp