File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,7 @@ class LinuxKernelRewriter final : public MetadataRewriter {
337337 // / Paravirtual instruction patch sites.
338338 Error readParaInstructions ();
339339 Error rewriteParaInstructions ();
340+ void processParaInstructionsPostCFG ();
340341
341342 // / __bug_table section handling.
342343 Error readBugTable ();
@@ -445,6 +446,7 @@ class LinuxKernelRewriter final : public MetadataRewriter {
445446 if (Error E = processORCPostCFG ())
446447 return E;
447448
449+ processParaInstructionsPostCFG ();
448450 processAltInstructionsPostCFG ();
449451
450452 return Error::success ();
@@ -1439,10 +1441,6 @@ Error LinuxKernelRewriter::readParaInstructions() {
14391441 }
14401442 }
14411443
1442- // Disable output of functions with paravirtual instructions before the
1443- // rewrite support is complete.
1444- skipFunctionsWithAnnotation (" ParaSite" );
1445-
14461444 BC.outs () << " BOLT-INFO: parsed " << EntryID << " paravirtual patch sites\n " ;
14471445
14481446 return Error::success ();
@@ -1465,6 +1463,12 @@ void LinuxKernelRewriter::skipFunctionsWithAnnotation(
14651463 }
14661464}
14671465
1466+ void LinuxKernelRewriter::processParaInstructionsPostCFG () {
1467+ // Disable output of functions with paravirtual instructions before the
1468+ // rewrite support is complete.
1469+ skipFunctionsWithAnnotation (" ParaSite" );
1470+ }
1471+
14681472Error LinuxKernelRewriter::rewriteParaInstructions () {
14691473 return Error::success ();
14701474}
You can’t perform that action at this time.
0 commit comments