1 //===- LinePrinter.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_TOOLS_LLVMPDBDUMP_LINEPRINTER_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_LINEPRINTER_H
13 #include "llvm/ADT/Twine.h"
14 #include "llvm/Support/raw_ostream.h"
19 friend class WithColor;
22 LinePrinter(int Indent, raw_ostream &Stream);
29 raw_ostream &getStream() { return OS; }
38 inline raw_ostream &operator<<(LinePrinter &Printer, const T &Item) {
39 Printer.getStream() << Item;
40 return Printer.getStream();
43 enum class PDB_ColorItem {
57 WithColor(LinePrinter &P, PDB_ColorItem C);
60 raw_ostream &get() { return OS; }
63 void translateColor(PDB_ColorItem C, raw_ostream::Colors &Color,