Fix to build with LLVM TOT after LLVM API change
This commit is contained in:
@@ -365,7 +365,11 @@ AddBitcodeToModule(const unsigned char *bitcode, int length,
|
|||||||
bcModule->setTargetTriple(mTriple.str());
|
bcModule->setTargetTriple(mTriple.str());
|
||||||
|
|
||||||
std::string(linkError);
|
std::string(linkError);
|
||||||
if (llvm::Linker::LinkModules(module, bcModule, &linkError))
|
if (llvm::Linker::LinkModules(module, bcModule,
|
||||||
|
#if defined(LLVM_3_0) || defined(LLVM_3_0svn)
|
||||||
|
llvm::Linker::DestroySource,
|
||||||
|
#endif // LLVM_3_0
|
||||||
|
&linkError))
|
||||||
Error(SourcePos(), "Error linking stdlib bitcode: %s", linkError.c_str());
|
Error(SourcePos(), "Error linking stdlib bitcode: %s", linkError.c_str());
|
||||||
if (symbolTable != NULL)
|
if (symbolTable != NULL)
|
||||||
lAddModuleSymbols(module, symbolTable);
|
lAddModuleSymbols(module, symbolTable);
|
||||||
|
|||||||
Reference in New Issue
Block a user