[RISCV] Fix build after r315254

createELFObjectWriter now takes a std::unique_ptr<MCELFObjectTargetWriter> 
rather than a MCELFObjectTargetWriter*.

llvm-svn: 315275
This commit is contained in:
Alex Bradbury 2017-10-10 07:19:18 +00:00
parent a88306e6fb
commit 8cc99f1887
1 changed files with 3 additions and 2 deletions

View File

@ -63,6 +63,7 @@ unsigned RISCVELFObjectWriter::getRelocType(MCContext &Ctx,
MCObjectWriter *llvm::createRISCVELFObjectWriter(raw_pwrite_stream &OS,
uint8_t OSABI, bool Is64Bit) {
MCELFObjectTargetWriter *MOTW = new RISCVELFObjectWriter(OSABI, Is64Bit);
return createELFObjectWriter(MOTW, OS, /*IsLittleEndian*/ true);
return createELFObjectWriter(
llvm::make_unique<RISCVELFObjectWriter>(OSABI, Is64Bit), OS,
/*IsLittleEndian=*/false);
}