swr/rast: Fix WriteBitcodeToFile usage with llvm-7.0.
authorVinson Lee <vlee@freedesktop.org>
Tue, 1 May 2018 06:57:23 +0000 (23:57 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 3 May 2018 21:06:09 +0000 (14:06 -0700)
commit589622a2fe1bbfb2564fae497e99a3bcb4a3e069
tree52773ce6d514809e68412bf14071915e59e3abff
parent9a21c96126d6a13e7b472ec622c517c0d0285ba8
swr/rast: Fix WriteBitcodeToFile usage with llvm-7.0.

Fix build error after llvm-7.0svn r325155 ("Pass a reference to a module
to the bitcode writer.").

  CXX      rasterizer/jitter/libmesaswr_la-JitManager.lo
rasterizer/jitter/JitManager.cpp:548:30: error: reference to type 'const llvm::Module' could not bind to an lvalue of type 'const llvm::Module *'
    llvm::WriteBitcodeToFile(M, bitcodeStream);
                             ^

Suggested-by: George Kyriazis <george.kyriazis@intel.com>
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-By: George Kyriazis <george.kyriazis@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp