mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 11:26:02 +03:00
Fix compile error with LLVM 3.6.
The llvm::Linker class now uses diagnostic messages.
This commit is contained in:
parent
53ee723279
commit
cc829485cc
2 changed files with 14 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue