1 //===--- raw_os_ostream.cpp - Implement the raw_os_ostream class ----------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This implements support adapting raw_ostream to std::ostream.
11 //===----------------------------------------------------------------------===//
13 #include "llvm/Support/raw_os_ostream.h"
17 //===----------------------------------------------------------------------===//
19 //===----------------------------------------------------------------------===//
21 raw_os_ostream::~raw_os_ostream() {
25 void raw_os_ostream::write_impl(const char *Ptr
, size_t Size
) {
29 uint64_t raw_os_ostream::current_pos() const { return OS
.tellp(); }