XFAIL the test cases for r186044 on Hexagon
[oota-llvm.git] / lib / Bitcode / Writer / BitcodeWriterPass.cpp
index 522060e78e714125af7437c9a4e8aba7bb452857..e5e76e29bd2d0abb2c9ccc2e10737281cccac294 100644 (file)
@@ -17,16 +17,16 @@ using namespace llvm;
 
 namespace {
   class WriteBitcodePass : public ModulePass {
-    std::ostream &Out;                 // ostream to print on
+    raw_ostream &OS; // raw_ostream to print on
   public:
-    static char ID; // Pass identifcation, replacement for typeid
-    explicit WriteBitcodePass(std::ostream &o)
-      : ModulePass((intptr_t) &ID), Out(o) {}
-    
+    static char ID; // Pass identification, replacement for typeid
+    explicit WriteBitcodePass(raw_ostream &o)
+      : ModulePass(ID), OS(o) {}
+
     const char *getPassName() const { return "Bitcode Writer"; }
-    
+
     bool runOnModule(Module &M) {
-      WriteBitcodeToFile(&M, Out);
+      WriteBitcodeToFile(&M, OS);
       return false;
     }
   };
@@ -34,10 +34,8 @@ namespace {
 
 char WriteBitcodePass::ID = 0;
 
-/// CreateBitcodeWriterPass - Create and return a pass that writes the module
+/// createBitcodeWriterPass - Create and return a pass that writes the module
 /// to the specified ostream.
-ModulePass *llvm::CreateBitcodeWriterPass(std::ostream &Str) {
+ModulePass *llvm::createBitcodeWriterPass(raw_ostream &Str) {
   return new WriteBitcodePass(Str);
 }
-
-