Index: include/llvm/Bitcode/BitcodeWriterPass.h =================================================================== --- include/llvm/Bitcode/BitcodeWriterPass.h +++ include/llvm/Bitcode/BitcodeWriterPass.h @@ -44,7 +44,7 @@ /// /// Note that this is intended for use with the new pass manager. To construct /// a pass for the legacy pass manager, use the function above. -class BitcodeWriterPass { +class BitcodeWriterPass : public PassInfoMixin { raw_ostream &OS; bool ShouldPreserveUseListOrder; bool EmitSummaryIndex; @@ -68,8 +68,6 @@ /// \brief Run the bitcode writer pass, and output the module to the selected /// output stream. PreservedAnalyses run(Module &M, ModuleAnalysisManager &); - - static StringRef name() { return "BitcodeWriterPass"; } }; }