From: Rafael Espindola Date: Mon, 16 Mar 2015 22:30:13 +0000 (+0000) Subject: Update for llvm API change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed533d64055d28aeba43f1ce50cb21e855f8ce3b;p=clang Update for llvm API change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232430 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/driver/cc1as_main.cpp b/tools/driver/cc1as_main.cpp index 80751fa539..cee8b10fea 100644 --- a/tools/driver/cc1as_main.cpp +++ b/tools/driver/cc1as_main.cpp @@ -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); }