[llvm-commits] [llvm] r163242 - /llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp

Chad Rosier mcrosier at apple.com
Wed Sep 5 14:40:09 PDT 2012


No a huge deal, but please try to be more careful in the future.. :)

On Sep 5, 2012, at 2:39 PM, Jan Voung wrote:

> Yikes, my apologies -- I forgot to squish my local git commits, etc. so this series of commits looks strange. The change should have just been the first one:
> 
> "Clean up llvm-bcanalyzer to print to consistent streams.
> Avoid interleaving fprintf(stderr,...) and outs() << ...;"
> 
> 
> 
> On Wed, Sep 5, 2012 at 2:06 PM, Chad Rosier <mcrosier at apple.com> wrote:
> On Sep 5, 2012, at 1:56 PM, Jan Wen Voung wrote:
> 
> > Author: jvoung
> > Date: Wed Sep  5 15:56:00 2012
> > New Revision: 163242
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=163242&view=rev
> > Log:
> > Fix a bug.
> 
> Please try to be more verbose in your commit messages.
> 
>  Chad
> 
> >
> > Modified:
> >    llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
> >
> > Modified: llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
> > URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp?rev=163242&r1=163241&r2=163242&view=diff
> > ==============================================================================
> > --- llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp (original)
> > +++ llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp Wed Sep  5 15:56:00 2012
> > @@ -592,7 +592,7 @@
> >       for (unsigned i = 0, e = FreqPairs.size(); i != e; ++i) {
> >         const PerRecordStats &RecStats = Stats.CodeFreq[FreqPairs[i].second];
> >
> > -        outs() << format("\t\t%7d %9.2f",
> > +        outs() << format("\t\t%7d %9lu",
> >                          RecStats.NumInstances,
> >                          (unsigned long)RecStats.TotalBits);
> >
> >
> >
> > _______________________________________________
> > 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/20120905/a59b6485/attachment.html>


More information about the llvm-commits mailing list