Update for llvm API change.

llvm-svn: 232430
This commit is contained in:
Rafael Espindola 2015-03-16 22:30:13 +00:00
parent f696df1148
commit 55cfaa2552

View File

@ -379,8 +379,9 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts,
MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, Ctx);
MCAsmBackend *MAB = TheTarget->createMCAsmBackend(*MRI, Opts.Triple,
Opts.CPU);
Str.reset(TheTarget->createMCObjectStreamer(Opts.Triple, Ctx, *MAB, *Out,
CE, *STI, Opts.RelaxAll));
Triple T(Opts.Triple);
Str.reset(TheTarget->createMCObjectStreamer(T, Ctx, *MAB, *Out, CE, *STI,
Opts.RelaxAll));
Str.get()->InitSections(Opts.NoExecStack);
}