aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-06-02 06:00:35 +0000
committerFangrui Song <maskray@google.com>2018-06-02 06:00:35 +0000
commitb6ec37aaaa73d1d057d7cc7e57ecb697e35833fb (patch)
tree62e320cf5c9408f3d3556f0d9c1b850c697f50e4
parentcd5a806c0f26c2c7e9cee0bda12fb538eba2ea23 (diff)
[Support] Remove unused raw_ostream::handle whose anchor role was superseded by anchor()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@333817 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/raw_ostream.h3
-rw-r--r--lib/Support/circular_raw_ostream.cpp2
-rw-r--r--lib/Support/raw_ostream.cpp3
3 files changed, 1 insertions, 7 deletions
diff --git a/include/llvm/Support/raw_ostream.h b/include/llvm/Support/raw_ostream.h
index 83037a9b02c..263d6658ffd 100644
--- a/include/llvm/Support/raw_ostream.h
+++ b/include/llvm/Support/raw_ostream.h
@@ -296,9 +296,6 @@ private:
/// \invariant { 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
/// currently in the buffer.
virtual uint64_t current_pos() const = 0;
diff --git a/lib/Support/circular_raw_ostream.cpp b/lib/Support/circular_raw_ostream.cpp
index ca0d30db388..e768f17cd00 100644
--- a/lib/Support/circular_raw_ostream.cpp
+++ b/lib/Support/circular_raw_ostream.cpp
@@ -33,7 +33,7 @@ void circular_raw_ostream::write_impl(const char *Ptr, size_t Size) {
Cur = BufferArray;
Filled = true;
}
- }
+ }
}
void circular_raw_ostream::flushBufferWithBanner() {
diff --git a/lib/Support/raw_ostream.cpp b/lib/Support/raw_ostream.cpp
index a4ab75c2735..3de063449f7 100644
--- a/lib/Support/raw_ostream.cpp
+++ b/lib/Support/raw_ostream.cpp
@@ -75,9 +75,6 @@ raw_ostream::~raw_ostream() {
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 {
// BUFSIZ is intended to be a reasonable default.
return BUFSIZ;