From: Lang Hames Date: Wed, 11 Oct 2017 01:58:08 +0000 (+0000) Subject: Update cc1as_main for MCAsmBackend ownership change in r315410. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=853872e514a3c0e39ba03dfc441e322887186dc1;p=clang Update cc1as_main for MCAsmBackend ownership change in r315410. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315411 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 1d130d186e..64bb0c62a4 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -419,8 +419,8 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Opts.CPU, Options); Triple T(Opts.Triple); Str.reset(TheTarget->createMCObjectStreamer( - T, Ctx, *MAB, *Out, CE, *STI, Opts.RelaxAll, - Opts.IncrementalLinkerCompatible, + T, Ctx, std::unique_ptr(MAB), *Out, CE, *STI, + Opts.RelaxAll, Opts.IncrementalLinkerCompatible, /*DWARFMustBeAtTheEnd*/ true)); Str.get()->InitSections(Opts.NoExecStack); }