swr/rast: switch win32 jit format to COFF
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 4 Jan 2018 16:27:13 +0000 (10:27 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 10 Jan 2018 15:44:07 +0000 (09:44 -0600)
Allows for call-stack and exception handling for jitted functions.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp

index 883ac774827ad17a687a0e9b2cb39df241c607e7..508bc027dd97952acd52aace544134114e685c33 100644 (file)
@@ -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