SamplePGO - Add dump routines for LineLocation, SampleRecord and FunctionSamples
[oota-llvm.git] / lib / ProfileData / SampleProfReader.cpp
index 0bed4f09f1f1cd0808c208f74c581b980ad6bf15..e71d0bae07bdbc367dfdc99f5cb3cf12f85b869d 100644 (file)
@@ -38,8 +38,7 @@ using namespace llvm;
 /// \param OS Stream to emit the output to.
 void SampleProfileReader::dumpFunctionProfile(StringRef FName,
                                               raw_ostream &OS) {
-  OS << "Function: " << FName << ": ";
-  Profiles[FName].print(OS);
+  OS << "Function: " << FName << ": " << Profiles[FName];
 }
 
 /// \brief Dump all the function profiles found on stream \p OS.