[llvm] r226964 - InstrProf: debug dumps should go to dbgs(), not outs()

Justin Bogner mail at justinbogner.com
Fri Jan 23 15:28:30 PST 2015


Author: bogner
Date: Fri Jan 23 17:28:30 2015
New Revision: 226964

URL: http://llvm.org/viewvc/llvm-project?rev=226964&view=rev
Log:
InstrProf: debug dumps should go to dbgs(), not outs()

Modified:
    llvm/trunk/include/llvm/ProfileData/CoverageMapping.h

Modified: llvm/trunk/include/llvm/ProfileData/CoverageMapping.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ProfileData/CoverageMapping.h?rev=226964&r1=226963&r2=226964&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ProfileData/CoverageMapping.h (original)
+++ llvm/trunk/include/llvm/ProfileData/CoverageMapping.h Fri Jan 23 17:28:30 2015
@@ -19,6 +19,7 @@
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/Hashing.h"
 #include "llvm/ADT/iterator.h"
+#include "llvm/Support/Debug.h"
 #include "llvm/Support/ErrorOr.h"
 #include "llvm/Support/raw_ostream.h"
 #include <system_error>
@@ -217,7 +218,7 @@ public:
       : Expressions(Expressions), CounterValues(CounterValues) {}
 
   void dump(const Counter &C, llvm::raw_ostream &OS) const;
-  void dump(const Counter &C) const { dump(C, llvm::outs()); }
+  void dump(const Counter &C) const { dump(C, dbgs()); }
 
   /// \brief Return the number of times that a region of code associated with
   /// this counter was executed.





More information about the llvm-commits mailing list