Fix compile error with LLVM 3.6.

The llvm::Linker class now uses diagnostic messages.
This commit is contained in:
kai 2014-10-25 17:39:42 +02:00
parent 53ee723279
commit cc829485cc
2 changed files with 14 additions and 2 deletions

View file

@ -403,9 +403,11 @@ LLFunction* DtoInlineIRFunction(FuncDeclaration* fdecl)
(std::string(err.getColumnNo(), ' ') + '^').c_str(),
errstr.c_str(), stream.str().c_str());
#if LDC_LLVM_VER >= 303
std::string errstr2 = "";
#if LDC_LLVM_VER >= 306
llvm::Linker(gIR->module).linkInModule(m.get());
#else
std::string errstr2 = "";
#if LDC_LLVM_VER >= 303
llvm::Linker(gIR->module).linkInModule(m.get(), &errstr2);
#else
llvm::Linker(gIR->module).linkInModule(m, &errstr2);