<p dir="ltr"><br>
On Jun 18, 2013 12:24 AM, "Bill Wendling" <<a href="mailto:isanbard@gmail.com">isanbard@gmail.com</a>> wrote:<br>
><br>
> Author: void<br>
> Date: Tue Jun 18 02:22:05 2013<br>
> New Revision: 184176<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=184176&view=rev">http://llvm.org/viewvc/llvm-project?rev=184176&view=rev</a><br>
> Log:<br>
> Update to pass in pointers intead of references.</p>
<p dir="ltr">Why?</p>
<p dir="ltr">><br>
> Modified:<br>
> cfe/trunk/lib/Parse/ParseStmt.cpp<br>
> cfe/trunk/tools/driver/cc1as_main.cpp<br>
><br>
> Modified: cfe/trunk/lib/Parse/ParseStmt.cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseStmt.cpp?rev=184176&r1=184175&r2=184176&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseStmt.cpp?rev=184176&r1=184175&r2=184176&view=diff</a><br>
> ==============================================================================<br>
> --- cfe/trunk/lib/Parse/ParseStmt.cpp (original)<br>
> +++ cfe/trunk/lib/Parse/ParseStmt.cpp Tue Jun 18 02:22:05 2013<br>
> @@ -2098,7 +2098,7 @@ StmtResult Parser::ParseMicrosoftAsmStat<br>
> STI(TheTarget->createMCSubtargetInfo(TT, "", ""));<br>
><br>
> llvm::SourceMgr TempSrcMgr;<br>
> - llvm::MCContext Ctx(*MAI, *MRI, MOFI.get(), &TempSrcMgr);<br>
> + llvm::MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &TempSrcMgr);<br>
> llvm::MemoryBuffer *Buffer =<br>
> llvm::MemoryBuffer::getMemBuffer(AsmString, "<MS inline asm>");<br>
><br>
><br>
> Modified: cfe/trunk/tools/driver/cc1as_main.cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1as_main.cpp?rev=184176&r1=184175&r2=184176&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1as_main.cpp?rev=184176&r1=184175&r2=184176&view=diff</a><br>
> ==============================================================================<br>
> --- cfe/trunk/tools/driver/cc1as_main.cpp (original)<br>
> +++ cfe/trunk/tools/driver/cc1as_main.cpp Tue Jun 18 02:22:05 2013<br>
> @@ -304,7 +304,7 @@ static bool ExecuteAssembler(AssemblerIn<br>
> // FIXME: This is not pretty. MCContext has a ptr to MCObjectFileInfo and<br>
> // MCObjectFileInfo needs a MCContext reference in order to initialize itself.<br>
> OwningPtr<MCObjectFileInfo> MOFI(new MCObjectFileInfo());<br>
> - MCContext Ctx(*MAI, *MRI, MOFI.get(), &SrcMgr);<br>
> + MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr);<br>
> // FIXME: Assembler behavior can change with -static.<br>
> MOFI->InitMCObjectFileInfo(Opts.Triple,<br>
> Reloc::Default, CodeModel::Default, Ctx);<br>
><br>
><br>
> _______________________________________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
</p>