[llvm-commits] CVS: llvm/include/llvm/Bitcode/ReaderWriter.h

Chris Lattner sabre at nondot.org
Sat May 5 19:30:29 PDT 2007



Changes in directory llvm/include/llvm/Bitcode:

ReaderWriter.h updated: 1.2 -> 1.3
---
Log message:

add a new CreateBitcodeWriterPass method, which creates a bitcode writer as
a pass


---
Diffs of the changes:  (+5 -0)

 ReaderWriter.h |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm/include/llvm/Bitcode/ReaderWriter.h
diff -u llvm/include/llvm/Bitcode/ReaderWriter.h:1.2 llvm/include/llvm/Bitcode/ReaderWriter.h:1.3
--- llvm/include/llvm/Bitcode/ReaderWriter.h:1.2	Sun Apr 29 02:54:31 2007
+++ llvm/include/llvm/Bitcode/ReaderWriter.h	Sat May  5 21:30:12 2007
@@ -21,6 +21,7 @@
   class Module;
   class ModuleProvider;
   class MemoryBuffer;
+  class ModulePass;
   
   /// getBitcodeModuleProvider - Read the header of the specified bitcode buffer
   /// and prepare for lazy deserialization of function bodies.  If successful,
@@ -38,6 +39,10 @@
   /// WriteBitcodeToFile - Write the specified module to the specified output
   /// stream.
   void WriteBitcodeToFile(const Module *M, std::ostream &Out);
+  
+  /// CreateBitcodeWriterPass - Create and return a pass that writes the module
+  /// to the specified ostream.
+  ModulePass *CreateBitcodeWriterPass(std::ostream &Str);
 } // End llvm namespace
 
 #endif






More information about the llvm-commits mailing list