diff options
author | George Kyriazis <[email protected]> | 2018-04-23 11:22:50 -0500 |
---|---|---|
committer | George Kyriazis <[email protected]> | 2018-04-27 14:36:41 -0500 |
commit | 577af2bed4a7d4ab9996864f13665a7917a1194e (patch) | |
tree | e29e7d77583bc96bb853088c2b66dfc2643648b6 /src | |
parent | aeab9db50a1067836764ff2486412b04d2b3b3a2 (diff) |
swr/rast: Cleanup old cruft.
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp index 284eb27a7d3..33923e6d698 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp @@ -82,13 +82,6 @@ JitManager::JitManager(uint32_t simdWidth, const char *arch, const char* core) hostCPUName = sys::getHostCPUName(); -#if defined(_WIN32) - // Needed for MCJIT on windows - Triple hostTriple(sys::getProcessTriple()); - hostTriple.setObjectFormat(Triple::COFF); - mpCurrentModule->setTargetTriple(hostTriple.getTriple()); -#endif // _WIN32 - auto optLevel = CodeGenOpt::Aggressive; if (KNOB_JIT_OPTIMIZATION_LEVEL >= CodeGenOpt::None && @@ -97,6 +90,7 @@ JitManager::JitManager(uint32_t simdWidth, const char *arch, const char* core) optLevel = CodeGenOpt::Level(KNOB_JIT_OPTIMIZATION_LEVEL); } + mpCurrentModule->setTargetTriple(sys::getProcessTriple()); mpExec = EngineBuilder(std::move(newModule)) .setTargetOptions(tOpts) .setOptLevel(optLevel) @@ -163,13 +157,7 @@ void JitManager::SetupNewModule() std::unique_ptr<Module> newModule(new Module("", mContext)); mpCurrentModule = newModule.get(); -#if defined(_WIN32) - // Needed for MCJIT on windows - Triple hostTriple(sys::getProcessTriple()); - hostTriple.setObjectFormat(Triple::COFF); - newModule->setTargetTriple(hostTriple.getTriple()); -#endif // _WIN32 - + mpCurrentModule->setTargetTriple(sys::getProcessTriple()); mpExec->addModule(std::move(newModule)); mIsModuleFinalized = false; } @@ -537,9 +525,7 @@ JitCache::JitCache() int ExecUnhookedProcess(const std::string& CmdLine, std::string* pStdOut, std::string* pStdErr) { - static const char *g_pEnv = "RASTY_DISABLE_HOOK=1\0"; - - return ExecCmd(CmdLine, g_pEnv, pStdOut, pStdErr); + return ExecCmd(CmdLine, "", pStdOut, pStdErr); } |