[PATCH] D23465: [PM] BitcodeWriterPass should derive from PassInfoMixin

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 12 14:41:37 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL278566: [PM] BitcodeWriterPass should derive from PassInfoMixin (authored by tejohnson).

Changed prior to commit:
  https://reviews.llvm.org/D23465?vs=67913&id=67917#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23465

Files:
  llvm/trunk/include/llvm/Bitcode/BitcodeWriterPass.h

Index: llvm/trunk/include/llvm/Bitcode/BitcodeWriterPass.h
===================================================================
--- llvm/trunk/include/llvm/Bitcode/BitcodeWriterPass.h
+++ llvm/trunk/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<BitcodeWriterPass> {
   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"; }
 };
 
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23465.67917.patch
Type: text/x-patch
Size: 838 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160812/d009e7d9/attachment.bin>


More information about the llvm-commits mailing list