Use raw_pwrite_stream in the object writer/streamer.
[oota-llvm.git] / include / llvm / MC / MCLinkerOptimizationHint.h
index 8c0813b6b0a6af52310281c1837ecb22c1c2ad39..c96d5782bc4bee35809f4c18327bf732b2a3ed07 100644 (file)
@@ -140,12 +140,8 @@ public:
       uint64_t current_pos() const override { return Count; }
 
     public:
-      raw_counting_ostream() : raw_ostream(SK_COUNTING), Count(0) {}
-      ~raw_counting_ostream() { flush(); }
-
-      static bool classof(const raw_ostream *OS) {
-        return OS->getKind() == SK_COUNTING;
-      }
+      raw_counting_ostream() : Count(0) {}
+      ~raw_counting_ostream() override { flush(); }
     };
 
     raw_counting_ostream OutStream;