[Support] Remove unused raw_ostream::handle whose anchor role was superseded by anchor()

llvm-svn: 333817
This commit is contained in:
Fangrui Song 2018-06-02 06:00:35 +00:00
parent 7177528783
commit 8ca769d204
3 changed files with 1 additions and 7 deletions

View File

@ -296,9 +296,6 @@ private:
/// \invariant { Size > 0 } /// \invariant { Size > 0 }
virtual void write_impl(const char *Ptr, size_t Size) = 0; virtual void write_impl(const char *Ptr, size_t Size) = 0;
// An out of line virtual method to provide a home for the class vtable.
virtual void handle();
/// Return the current position within the stream, not counting the bytes /// Return the current position within the stream, not counting the bytes
/// currently in the buffer. /// currently in the buffer.
virtual uint64_t current_pos() const = 0; virtual uint64_t current_pos() const = 0;

View File

@ -33,7 +33,7 @@ void circular_raw_ostream::write_impl(const char *Ptr, size_t Size) {
Cur = BufferArray; Cur = BufferArray;
Filled = true; Filled = true;
} }
} }
} }
void circular_raw_ostream::flushBufferWithBanner() { void circular_raw_ostream::flushBufferWithBanner() {

View File

@ -75,9 +75,6 @@ raw_ostream::~raw_ostream() {
delete [] OutBufStart; delete [] OutBufStart;
} }
// An out of line virtual method to provide a home for the class vtable.
void raw_ostream::handle() {}
size_t raw_ostream::preferred_buffer_size() const { size_t raw_ostream::preferred_buffer_size() const {
// BUFSIZ is intended to be a reasonable default. // BUFSIZ is intended to be a reasonable default.
return BUFSIZ; return BUFSIZ;