r226968 - InstrProf: Use the stream when dumping counters

Justin Bogner mail at justinbogner.com
Fri Jan 23 15:46:13 PST 2015


Author: bogner
Date: Fri Jan 23 17:46:13 2015
New Revision: 226968

URL: http://llvm.org/viewvc/llvm-project?rev=226968&view=rev
Log:
InstrProf: Use the stream when dumping counters

Modified:
    cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp

Modified: cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp?rev=226968&r1=226967&r2=226968&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp (original)
+++ cfe/trunk/lib/CodeGen/CoverageMappingGen.cpp Fri Jan 23 17:46:13 2015
@@ -1028,7 +1028,7 @@ static void dump(llvm::raw_ostream &OS,
     OS << "File " << R.FileID << ", " << R.LineStart << ":"
            << R.ColumnStart << " -> " << R.LineEnd << ":" << R.ColumnEnd
            << " = ";
-    Ctx.dump(R.Count);
+    Ctx.dump(R.Count, OS);
     OS << " (HasCodeBefore = " << R.HasCodeBefore;
     if (R.Kind == CounterMappingRegion::ExpansionRegion)
       OS << ", Expanded file = " << R.ExpandedFileID;





More information about the cfe-commits mailing list