diff options
author | Tim Rowley <[email protected]> | 2017-04-07 10:58:38 -0500 |
---|---|---|
committer | Tim Rowley <[email protected]> | 2017-04-11 18:01:03 -0500 |
commit | 54d11b3c95f7baec6fda8583876f696bac17a1a2 (patch) | |
tree | 3f9815ee1888c66ee4e6e90d8f86e191137f4e77 /src/gallium/drivers/swr/rasterizer | |
parent | af909c02002ce8405b9af898f93063fc17d3be5c (diff) |
swr: [rasterizer jitter] Remove unused function
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer')
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp | 34 | ||||
-rw-r--r-- | src/gallium/drivers/swr/rasterizer/jitter/JitManager.h | 1 |
2 files changed, 0 insertions, 35 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp index 8d1d259e62b..5d8ad273d36 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp +++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.cpp @@ -187,40 +187,6 @@ void JitManager::SetupNewModule() mIsModuleFinalized = false; } -////////////////////////////////////////////////////////////////////////// -/// @brief Create new LLVM module from IR. -bool JitManager::SetupModuleFromIR(const uint8_t *pIR, size_t length) -{ - std::unique_ptr<MemoryBuffer> pMem = MemoryBuffer::getMemBuffer(StringRef((const char*)pIR, length), ""); - - SMDiagnostic Err; - std::unique_ptr<Module> newModule = parseIR(pMem.get()->getMemBufferRef(), Err, mContext); - - - SWR_REL_ASSERT( - !(newModule == nullptr), - "Parse failed!\n" - "%s", Err.getMessage().data()); - if (newModule == nullptr) - { - return false; - } - - newModule->setDataLayout(mpExec->getDataLayout()); - - mpCurrentModule = newModule.get(); -#if defined(_WIN32) - // Needed for MCJIT on windows - Triple hostTriple(sys::getProcessTriple()); - hostTriple.setObjectFormat(Triple::ELF); - newModule->setTargetTriple(hostTriple.getTriple()); -#endif // _WIN32 - - mpExec->addModule(std::move(newModule)); - mIsModuleFinalized = false; - - return true; -} ////////////////////////////////////////////////////////////////////////// /// @brief Dump function x86 assembly to file. diff --git a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h index d97ae871c28..97d93128de2 100644 --- a/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h +++ b/src/gallium/drivers/swr/rasterizer/jitter/JitManager.h @@ -172,7 +172,6 @@ struct JitManager std::string mCore; void SetupNewModule(); - bool SetupModuleFromIR(const uint8_t *pIR, size_t length); void DumpAsm(llvm::Function* pFunction, const char* fileName); static void DumpToFile(llvm::Function *f, const char *fileName); |