[llvm] r230966 - AsmWriter: Only print one space after the load type

David Blaikie dblaikie at gmail.com
Mon Mar 2 07:48:46 PST 2015


On Mar 2, 2015 7:29 AM, "Benjamin Kramer" <benny.kra at googlemail.com> wrote:
>
> Author: d0k
> Date: Mon Mar  2 09:24:41 2015
> New Revision: 230966
>
> URL: http://llvm.org/viewvc/llvm-project?rev=230966&view=rev
> Log:
> AsmWriter: Only print one space after the load type
>
> Before: %x = load i32,  i32* %i
> After:  %x = load i32, i32* %i

Thanks!

>
> Purely cosmetic, so no new test case.
>
> Modified:
>     llvm/trunk/lib/IR/AsmWriter.cpp
>
> Modified: llvm/trunk/lib/IR/AsmWriter.cpp
> URL:
http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/AsmWriter.cpp?rev=230966&r1=230965&r2=230966&view=diff
>
==============================================================================
> --- llvm/trunk/lib/IR/AsmWriter.cpp (original)
> +++ llvm/trunk/lib/IR/AsmWriter.cpp Mon Mar  2 09:24:41 2015
> @@ -2906,7 +2906,7 @@ void AssemblyWriter::printInstruction(co
>      } else if (const auto *LI = dyn_cast<LoadInst>(&I)) {
>        Out << ' ';
>        TypePrinter.print(LI->getType(), Out);
> -      Out << ", ";
> +      Out << ',';
>      }
>
>      // PrintAllTypes - Instructions who have operands of all the same
type
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150302/9709678f/attachment.html>


More information about the llvm-commits mailing list