Merge pull request #1129 from Shishpan/trunkFix
Fix for rev. 254449. Changed linkModules() API
This commit is contained in:
@@ -891,7 +891,11 @@ AddBitcodeToModule(const unsigned char *bitcode, int length,
|
|||||||
bcModule->setDataLayout(module->getDataLayout());
|
bcModule->setDataLayout(module->getDataLayout());
|
||||||
|
|
||||||
std::string(linkError);
|
std::string(linkError);
|
||||||
|
#if ISPC_LLVM_VERSION <= ISPC_LLVM_3_7
|
||||||
if (llvm::Linker::LinkModules(module, bcModule
|
if (llvm::Linker::LinkModules(module, bcModule
|
||||||
|
#else // LLVM 3.8+
|
||||||
|
if (llvm::Linker::linkModules(*module, *bcModule
|
||||||
|
#endif
|
||||||
#if ISPC_LLVM_VERSION <= ISPC_LLVM_3_5
|
#if ISPC_LLVM_VERSION <= ISPC_LLVM_3_5
|
||||||
, llvm::Linker::DestroySource,
|
, llvm::Linker::DestroySource,
|
||||||
&linkError))
|
&linkError))
|
||||||
|
|||||||
Reference in New Issue
Block a user