llvm 7.0 fixes

This commit is contained in:
Ivan 2018-06-03 02:41:28 +03:00
parent cda084db79
commit 0191c75800
2 changed files with 17 additions and 2 deletions

View file

@ -289,7 +289,13 @@ void disassemble(const llvm::TargetMachine &tm,
// Streamer takes ownership of mip mab
auto asmStreamer = unique(target.createAsmStreamer(
ctx, llvm::make_unique<llvm::formatted_raw_ostream>(os), true, true,
mip.release(), nullptr, mab.release(), false));
mip.release(), nullptr,
#if LDC_LLVM_VER >= 700
std::move(mab),
#else
mab.release(),
#endif
false));
if (nullptr == asmStreamer) {
return;
}