swr: Fix build with llvm-10.0.
authorVinson Lee <vlee@freedesktop.org>
Wed, 20 Nov 2019 06:51:22 +0000 (06:51 +0000)
committerVinson Lee <vlee@freedesktop.org>
Thu, 21 Nov 2019 21:20:08 +0000 (13:20 -0800)
commit6613a4a0295879dc3ba2c13198f3ad5de7919487
treeeeb324993e8536fdfbd657ae1b322dcd12a11929
parent29d131d619c8b14b6d5b795ab3e17931e8e01502
swr: Fix build with llvm-10.0.

Fix build error after llvm-10.0 commit 1dfede3122ee ("Move
CodeGenFileType enum to Support/CodeGen.h").

../src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp: In member function ‘void JitManager::DumpAsm(llvm::Function*, const char*)’:
../src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp:428:45: error: ‘CGFT_AssemblyFile’ is not a member of ‘llvm::TargetMachine’
             *pMPasses, filestream, nullptr, TargetMachine::CGFT_AssemblyFile);
                                             ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Jan Zielinski <jan.zielinski@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp