forked from OSchip/llvm-project
[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:
parent
a88306e6fb
commit
8cc99f1887
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue