Mesa (master): swr/rast: switch win32 jit format to COFF
Tim Rowley
torowley at kemper.freedesktop.org
Wed Jan 10 15:44:59 UTC 2018
Module: Mesa
Branch: master
Commit: c259888c52a3cd9f6dd39cc33e919540435e5f5a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c259888c52a3cd9f6dd39cc33e919540435e5f5a
Author: Tim Rowley <timothy.o.rowley at intel.com>
Date: Thu Jan 4 10:27:13 2018 -0600
swr/rast: switch win32 jit format to COFF
Allows for call-stack and exception handling for jitted functions.
Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
---
src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp
index 883ac77482..508bc027dd 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<llvm::MemoryBuffer> JitCache::getObject(const llvm::Module* M)
fclose(fpIn);
return pBuf;
-}
+}
\ No newline at end of file
More information about the mesa-commit
mailing list