From: Tim Rowley Date: Thu, 4 Jan 2018 16:27:13 +0000 (-0600) Subject: swr/rast: switch win32 jit format to COFF X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c259888c52a3cd9f6dd39cc33e919540435e5f5a;p=mesa.git swr/rast: switch win32 jit format to COFF Allows for call-stack and exception handling for jitted functions. Reviewed-by: Bruce Cherniak --- diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp index 883ac774827..508bc027dd9 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp @@ -92,7 +92,7 @@ JitManager::JitManager(uint32_t simdWidth, const char *arch, const char* core) #if defined(_WIN32) // Needed for MCJIT on windows Triple hostTriple(sys::getProcessTriple()); - hostTriple.setObjectFormat(Triple::ELF); + hostTriple.setObjectFormat(Triple::COFF); mpCurrentModule->setTargetTriple(hostTriple.getTriple()); #endif // _WIN32 @@ -486,4 +486,4 @@ std::unique_ptr JitCache::getObject(const llvm::Module* M) fclose(fpIn); return pBuf; -} +} \ No newline at end of file