swr/rast: switch win32 jit format to COFF
Allows for call-stack and exception handling for jitted functions. Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
parent
3d4d34e380
commit
c259888c52
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue