aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/raw_ostream.cpp
diff options
context:
space:
mode:
authorWeiming Zhao <wmzhao.code@gmail.com>2018-04-11 23:09:20 +0000
committerWeiming Zhao <wmzhao.code@gmail.com>2018-04-11 23:09:20 +0000
commit1bd40005ba4862f9c2ec2fc202b25fabd68f6d37 (patch)
tree81bff02a0d0426de8aa9c00a6e0cae16424644ce /llvm/lib/Support/raw_ostream.cpp
parent4eb879c6862d32fec7da372b60bbc53de5679703 (diff)
downloadllvm-1bd40005ba4862f9c2ec2fc202b25fabd68f6d37.zip
llvm-1bd40005ba4862f9c2ec2fc202b25fabd68f6d37.tar.gz
llvm-1bd40005ba4862f9c2ec2fc202b25fabd68f6d37.tar.bz2
Add missing vtable anchors
Summary: This patch adds anchor() for MemoryBuffer, raw_fd_ostream, RTDyldMemoryManager, SectionMemoryManager, etc. Reviewers: jlebar, eli.friedman, dblaikie Reviewed By: dblaikie Subscribers: mehdi_amini, mgorny, dblaikie, weimingz, llvm-commits Differential Revision: https://reviews.llvm.org/D45244 llvm-svn: 329861
Diffstat (limited to 'llvm/lib/Support/raw_ostream.cpp')
-rw-r--r--llvm/lib/Support/raw_ostream.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp
index 5ecb18f..c0e210b 100644
--- a/llvm/lib/Support/raw_ostream.cpp
+++ b/llvm/lib/Support/raw_ostream.cpp
@@ -474,6 +474,8 @@ raw_ostream &raw_ostream::indent(unsigned NumSpaces) {
return *this;
}
+void raw_ostream::anchor() {}
+
//===----------------------------------------------------------------------===//
// Formatted Output
//===----------------------------------------------------------------------===//
@@ -727,6 +729,8 @@ bool raw_fd_ostream::has_colors() const {
return sys::Process::FileDescriptorHasColors(FD);
}
+void raw_fd_ostream::anchor() {}
+
//===----------------------------------------------------------------------===//
// outs(), errs(), nulls()
//===----------------------------------------------------------------------===//
@@ -804,3 +808,5 @@ uint64_t raw_null_ostream::current_pos() const {
void raw_null_ostream::pwrite_impl(const char *Ptr, size_t Size,
uint64_t Offset) {}
+
+void raw_pwrite_stream::anchor() {}