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

Sriraman Tallam via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 11:01:24 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);
+  }
+
----------------
tmsri wrote:

Thanks for doing this, can you add a test?

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


More information about the llvm-commits mailing list