llvm.org GIT mirror llvm / 62b8986
[llvm-mc-assemble-fuzzer] Catch up with API changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331568 91177308-0d34-0410-b5e6-96231b3b80d8 Davide Italiano 2 years ago
1 changed file(s) with 6 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
189189 const char *ProgName = "llvm-mc-fuzzer";
190190 std::unique_ptr STI(
191191 TheTarget->createMCSubtargetInfo(TripleName, MCPU, FeaturesStr));
192 MCCodeEmitter *CE = nullptr;
193 MCAsmBackend *MAB = nullptr;
192 std::unique_ptr CE = nullptr;
193 std::unique_ptr MAB = nullptr;
194194
195195 MCTargetOptions MCOptions = InitMCTargetOptionsFromFlags();
196196
201201 std::unique_ptr Str;
202202
203203 if (FileType == OFT_AssemblyFile) {
204 Str.reset(TheTarget->createAsmStreamer(
205 Ctx, std::move(FOut), AsmVerbose,
206 UseDwarfDirectory, IP, CE, MAB, ShowInst));
204 Str.reset(TheTarget->createAsmStreamer(Ctx, std::move(FOut), AsmVerbose,
205 UseDwarfDirectory, IP, std::move(CE),
206 std::move(MAB), ShowInst));
207207 } else {
208208 assert(FileType == OFT_ObjectFile && "Invalid file type!");
209209
227227 }
228228
229229 MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, Ctx);
230 MCAsmBackend *MAB = TheTarget->createMCAsmBackend(*MRI, TripleName, MCPU,
231 MCOptions);
230 MCAsmBackend *MAB = TheTarget->createMCAsmBackend(*STI, *MRI, MCOptions);
232231 Str.reset(TheTarget->createMCObjectStreamer(
233232 TheTriple, Ctx, std::unique_ptr(MAB), *OS,
234233 std::unique_ptr(CE), *STI, MCOptions.MCRelaxAll,