llvm.org GIT mirror llvm / d91f032
[llvm-mc-assemble-fuzzer] Update API - Pass MCObjectWriter instead of a stream Fixes build breakage of llvm-mc-assemble-fuzzer introduced by r332749. Fix provided by pbhatu (Pratik Bhatu) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339981 91177308-0d34-0410-b5e6-96231b3b80d8 Brian Cain 2 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1717 #include "llvm/MC/MCInstPrinter.h"
1818 #include "llvm/MC/MCInstrInfo.h"
1919 #include "llvm/MC/MCObjectFileInfo.h"
20 #include "llvm/MC/MCObjectWriter.h"
2021 #include "llvm/MC/MCParser/AsmLexer.h"
2122 #include "llvm/MC/MCParser/MCTargetAsmParser.h"
2223 #include "llvm/MC/MCRegisterInfo.h"
229230 MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, Ctx);
230231 MCAsmBackend *MAB = TheTarget->createMCAsmBackend(*STI, *MRI, MCOptions);
231232 Str.reset(TheTarget->createMCObjectStreamer(
232 TheTriple, Ctx, std::unique_ptr(MAB), *OS,
233 std::unique_ptr(CE), *STI, MCOptions.MCRelaxAll,
234 MCOptions.MCIncrementalLinkerCompatible,
233 TheTriple, Ctx, std::unique_ptr(MAB),
234 MAB->createObjectWriter(*OS), std::unique_ptr(CE), *STI,
235 MCOptions.MCRelaxAll, MCOptions.MCIncrementalLinkerCompatible,
235236 /*DWARFMustBeAtTheEnd*/ false));
236237 }
237238 const int Res = AssembleInput(ProgName, TheTarget, SrcMgr, Ctx, *Str, *MAI, *STI,