Revert "Fix compile error with LLVM 3.6."

This reverts commit cc829485cc.
This commit is contained in:
kai 2014-10-25 18:02:26 +02:00
parent cc829485cc
commit 332480460c
2 changed files with 2 additions and 14 deletions

View file

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