1 //===- CodeViewOStream.h ----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_CODEVIEW_CODEVIEWOSTREAM_H
11 #define LLVM_DEBUGINFO_CODEVIEW_CODEVIEWOSTREAM_H
13 #include "llvm/DebugInfo/CodeView/CodeView.h"
14 #include "llvm/DebugInfo/CodeView/TypeIndex.h"
19 template <typename Writer> class CodeViewOStream {
21 CodeViewOStream(const CodeViewOStream &) = delete;
22 CodeViewOStream &operator=(const CodeViewOStream &) = delete;
25 typedef typename Writer::LabelType LabelType;
28 explicit CodeViewOStream(Writer &W);
31 uint64_t size() const { return W.tell(); }