summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2018-01-04 10:27:13 -0600
committerTim Rowley <[email protected]>2018-01-10 09:44:07 -0600
commitc259888c52a3cd9f6dd39cc33e919540435e5f5a (patch)
tree1f1b533aaa440f8ef10088b5f6936bfa4d913232 /src
parent3d4d34e380f33e9daa86ff3aa4c06a56c5fa1318 (diff)
swr/rast: switch win32 jit format to COFF
Allows for call-stack and exception handling for jitted functions. Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp4
1 files 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 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<llvm::MemoryBuffer> JitCache::getObject(const llvm::Module* M)
fclose(fpIn);
return pBuf;
-}
+} \ No newline at end of file