File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -580,12 +580,8 @@ std::error_code SampleProfileWriterText::writeSample(const FunctionSamples &S) {
580580    LineLocation Loc = I->first ;
581581    const  SampleRecord &Sample = I->second ;
582582    OS.indent (Indent + 1 );
583-     if  (Loc.Discriminator  == 0 )
584-       OS << Loc.LineOffset  << " : "  ;
585-     else 
586-       OS << Loc.LineOffset  << " ."   << Loc.Discriminator  << " : "  ;
587- 
588-     OS << Sample.getSamples ();
583+     Loc.print (OS);
584+     OS << " : "   << Sample.getSamples ();
589585
590586    for  (const  auto  &J : Sample.getSortedCallTargets ())
591587      OS << "  "   << J.first  << " :"   << J.second ;
@@ -601,10 +597,8 @@ std::error_code SampleProfileWriterText::writeSample(const FunctionSamples &S) {
601597      LineLocation Loc = I->first ;
602598      const  FunctionSamples &CalleeSamples = FS.second ;
603599      OS.indent (Indent);
604-       if  (Loc.Discriminator  == 0 )
605-         OS << Loc.LineOffset  << " : "  ;
606-       else 
607-         OS << Loc.LineOffset  << " ."   << Loc.Discriminator  << " : "  ;
600+       Loc.print (OS);
601+       OS << " : "  ;
608602      if  (std::error_code EC = writeSample (CalleeSamples))
609603        return  EC;
610604    }
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments