[llvm] Fix MachineOutliner::createPrinterPass. (PR #115787)

Han Shen via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 14:47:58 PST 2024


================
@@ -460,6 +460,12 @@ struct MachineOutliner : public ModulePass {
 
   StringRef getPassName() const override { return "Machine Outliner"; }
 
+  /// createPrinterPass - Get a machine function printer pass.
+  Pass *createPrinterPass(raw_ostream &OS,
+                          const std::string &Banner) const override {
+    return createMachineFunctionPrinterPass(OS, Banner);
+  }
+
----------------
shenhanc78 wrote:

Thanks. Done.

https://github.com/llvm/llvm-project/pull/115787


More information about the llvm-commits mailing list