r184176 - Update to pass in pointers intead of references.

David Blaikie dblaikie at gmail.com
Tue Jun 18 07:29:27 PDT 2013


On Jun 18, 2013 12:24 AM, "Bill Wendling" <isanbard at gmail.com> wrote:
>
> Author: void
> Date: Tue Jun 18 02:22:05 2013
> New Revision: 184176
>
> URL: http://llvm.org/viewvc/llvm-project?rev=184176&view=rev
> Log:
> Update to pass in pointers intead of references.

Why?

>
> Modified:
>     cfe/trunk/lib/Parse/ParseStmt.cpp
>     cfe/trunk/tools/driver/cc1as_main.cpp
>
> Modified: cfe/trunk/lib/Parse/ParseStmt.cpp
> URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/ParseStmt.cpp?rev=184176&r1=184175&r2=184176&view=diff
>
==============================================================================
> --- cfe/trunk/lib/Parse/ParseStmt.cpp (original)
> +++ cfe/trunk/lib/Parse/ParseStmt.cpp Tue Jun 18 02:22:05 2013
> @@ -2098,7 +2098,7 @@ StmtResult Parser::ParseMicrosoftAsmStat
>      STI(TheTarget->createMCSubtargetInfo(TT, "", ""));
>
>    llvm::SourceMgr TempSrcMgr;
> -  llvm::MCContext Ctx(*MAI, *MRI, MOFI.get(), &TempSrcMgr);
> +  llvm::MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &TempSrcMgr);
>    llvm::MemoryBuffer *Buffer =
>      llvm::MemoryBuffer::getMemBuffer(AsmString, "<MS inline asm>");
>
>
> Modified: cfe/trunk/tools/driver/cc1as_main.cpp
> URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/cc1as_main.cpp?rev=184176&r1=184175&r2=184176&view=diff
>
==============================================================================
> --- cfe/trunk/tools/driver/cc1as_main.cpp (original)
> +++ cfe/trunk/tools/driver/cc1as_main.cpp Tue Jun 18 02:22:05 2013
> @@ -304,7 +304,7 @@ static bool ExecuteAssembler(AssemblerIn
>    // FIXME: This is not pretty. MCContext has a ptr to MCObjectFileInfo
and
>    // MCObjectFileInfo needs a MCContext reference in order to initialize
itself.
>    OwningPtr<MCObjectFileInfo> MOFI(new MCObjectFileInfo());
> -  MCContext Ctx(*MAI, *MRI, MOFI.get(), &SrcMgr);
> +  MCContext Ctx(MAI.get(), MRI.get(), MOFI.get(), &SrcMgr);
>    // FIXME: Assembler behavior can change with -static.
>    MOFI->InitMCObjectFileInfo(Opts.Triple,
>                               Reloc::Default, CodeModel::Default, Ctx);
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130618/b9f0d6b4/attachment.html>


More information about the cfe-commits mailing list