@@ -484,11 +484,11 @@ void LinuxKernelRewriter::updateLKMarkers() {
484
484
LKPatcher->addLE64Patch (LKMarkerInfo.SectionOffset , NewAddress);
485
485
}
486
486
}
487
- outs () << " BOLT-INFO: patching linux kernel sections. Total patches per "
488
- " section are as follows:\n " ;
487
+ BC. outs () << " BOLT-INFO: patching linux kernel sections. Total patches per "
488
+ " section are as follows:\n " ;
489
489
for (const std::pair<const std::string, uint64_t > &KV : PatchCounts)
490
- outs () << " Section: " << KV.first << " , patch-counts: " << KV.second
491
- << ' \n ' ;
490
+ BC. outs () << " Section: " << KV.first << " , patch-counts: " << KV.second
491
+ << ' \n ' ;
492
492
}
493
493
494
494
Error LinuxKernelRewriter::readORCTables () {
@@ -530,8 +530,8 @@ Error LinuxKernelRewriter::readORCTables() {
530
530
" out of bounds while reading ORC IP table" );
531
531
532
532
if (IP < PrevIP && opts::Verbosity)
533
- errs () << " BOLT-WARNING: out of order IP 0x" << Twine::utohexstr (IP)
534
- << " detected while reading ORC\n " ;
533
+ BC. errs () << " BOLT-WARNING: out of order IP 0x" << Twine::utohexstr (IP)
534
+ << " detected while reading ORC\n " ;
535
535
536
536
PrevIP = IP;
537
537
@@ -564,8 +564,8 @@ Error LinuxKernelRewriter::readORCTables() {
564
564
565
565
if (!BF) {
566
566
if (opts::Verbosity)
567
- errs () << " BOLT-WARNING: no binary function found matching ORC 0x"
568
- << Twine::utohexstr (IP) << " : " << Entry.ORC << ' \n ' ;
567
+ BC. errs () << " BOLT-WARNING: no binary function found matching ORC 0x"
568
+ << Twine::utohexstr (IP) << " : " << Entry.ORC << ' \n ' ;
569
569
continue ;
570
570
}
571
571
@@ -591,15 +591,15 @@ Error LinuxKernelRewriter::readORCTables() {
591
591
BC.MIB ->addAnnotation (*Inst, " ORC" , Entry.ORC );
592
592
}
593
593
594
- outs () << " BOLT-INFO: parsed " << NumORCEntries << " ORC entries\n " ;
594
+ BC. outs () << " BOLT-INFO: parsed " << NumORCEntries << " ORC entries\n " ;
595
595
596
596
if (opts::DumpORC) {
597
- outs () << " BOLT-INFO: ORC unwind information:\n " ;
597
+ BC. outs () << " BOLT-INFO: ORC unwind information:\n " ;
598
598
for (const ORCListEntry &E : ORCEntries) {
599
- outs () << " 0x" << Twine::utohexstr (E.IP ) << " : " << E.ORC ;
599
+ BC. outs () << " 0x" << Twine::utohexstr (E.IP ) << " : " << E.ORC ;
600
600
if (E.BF )
601
- outs () << " : " << *E.BF ;
602
- outs () << ' \n ' ;
601
+ BC. outs () << " : " << *E.BF ;
602
+ BC. outs () << ' \n ' ;
603
603
}
604
604
}
605
605
@@ -632,12 +632,12 @@ Error LinuxKernelRewriter::readORCTables() {
632
632
llvm::sort (ORCEntries);
633
633
634
634
if (opts::DumpORC) {
635
- outs () << " BOLT-INFO: amended ORC unwind information:\n " ;
635
+ BC. outs () << " BOLT-INFO: amended ORC unwind information:\n " ;
636
636
for (const ORCListEntry &E : ORCEntries) {
637
- outs () << " 0x" << Twine::utohexstr (E.IP ) << " : " << E.ORC ;
637
+ BC. outs () << " 0x" << Twine::utohexstr (E.IP ) << " : " << E.ORC ;
638
638
if (E.BF )
639
- outs () << " : " << *E.BF ;
640
- outs () << ' \n ' ;
639
+ BC. outs () << " : " << *E.BF ;
640
+ BC. outs () << ' \n ' ;
641
641
}
642
642
}
643
643
@@ -684,8 +684,8 @@ Error LinuxKernelRewriter::processORCPostCFG() {
684
684
" ORC info at function entry expected." );
685
685
686
686
if (It->ORC == NullORC && BF.hasORC ()) {
687
- errs () << " BOLT-WARNING: ORC unwind info excludes prologue for "
688
- << BF << ' \n ' ;
687
+ BC. errs () << " BOLT-WARNING: ORC unwind info excludes prologue for "
688
+ << BF << ' \n ' ;
689
689
}
690
690
691
691
It->BF = &BF;
@@ -878,9 +878,10 @@ Error LinuxKernelRewriter::readStaticCalls() {
878
878
++EntryID;
879
879
880
880
if (opts::DumpStaticCalls) {
881
- outs () << " Static Call Site: " << EntryID << ' \n ' ;
882
- outs () << " \t CallAddress: 0x" << Twine::utohexstr (CallAddress) << ' \n '
883
- << " \t KeyAddress: 0x" << Twine::utohexstr (KeyAddress) << ' \n ' ;
881
+ BC.outs () << " Static Call Site: " << EntryID << ' \n ' ;
882
+ BC.outs () << " \t CallAddress: 0x" << Twine::utohexstr (CallAddress)
883
+ << " \n\t KeyAddress: 0x" << Twine::utohexstr (KeyAddress)
884
+ << ' \n ' ;
884
885
}
885
886
886
887
BinaryFunction *BF = BC.getBinaryFunctionContainingAddress (CallAddress);
@@ -916,8 +917,8 @@ Error LinuxKernelRewriter::readStaticCalls() {
916
917
StaticCallEntries.push_back ({EntryID, BF, Label});
917
918
}
918
919
919
- outs () << " BOLT-INFO: parsed " << StaticCallEntries.size ()
920
- << " static call entries\n " ;
920
+ BC. outs () << " BOLT-INFO: parsed " << StaticCallEntries.size ()
921
+ << " static call entries\n " ;
921
922
922
923
return Error::success ();
923
924
}
0 commit comments