Skip to content

Commit d75c6fa

Browse files
arsenmlamb-j
authored andcommitted
comgr: Fix deprecated warnings
Change-Id: I7c0a115b629780d876ee5cd453b85d58045eaa30
1 parent 4f3d607 commit d75c6fa

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

amd/comgr/src/comgr-compiler.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,8 @@ static bool executeAssemblerImpl(AssemblerInvocation &Opts,
463463
MAB.reset(TheTarget->createMCAsmBackend(*STI, *MRI, Options));
464464
}
465465
auto FOut = std::make_unique<formatted_raw_ostream>(*Out);
466-
Str.reset(TheTarget->createAsmStreamer(
467-
Ctx, std::move(FOut), /*asmverbose*/ true,
468-
/*useDwarfDirectory*/ true, IP, std::move(MCE), std::move(MAB),
469-
Opts.ShowInst));
466+
Str.reset(TheTarget->createAsmStreamer(Ctx, std::move(FOut), IP,
467+
std::move(MCE), std::move(MAB)));
470468
} else if (Opts.OutputType == AssemblerInvocation::FT_Null) {
471469
Str.reset(createNullStreamer(Ctx));
472470
} else {
@@ -483,9 +481,8 @@ static bool executeAssemblerImpl(AssemblerInvocation &Opts,
483481
Triple T(Opts.Triple);
484482
Str.reset(TheTarget->createMCObjectStreamer(
485483
T, Ctx, std::unique_ptr<MCAsmBackend>(MAB),
486-
MAB->createObjectWriter(*Out), std::unique_ptr<MCCodeEmitter>(CE), *STI,
487-
Opts.RelaxAll, Opts.IncrementalLinkerCompatible,
488-
/*DWARFMustBeAtTheEnd*/ true));
484+
MAB->createObjectWriter(*Out), std::unique_ptr<MCCodeEmitter>(CE),
485+
*STI));
489486
Str.get()->initSections(Opts.NoExecStack, *STI);
490487
}
491488

0 commit comments

Comments
 (0)