blob: 74a171810c7ff3c5870bba2a79f5afe827dc5f7d [file] [log] [blame]
Zachary Turner9a818ad2015-02-22 22:03:38 +00001//===- llvm-pdbdump.h ----------------------------------------- *- C++ --*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef LLVM_TOOLS_LLVMPDBDUMP_LLVMPDBDUMP_H
11#define LLVM_TOOLS_LLVMPDBDUMP_LLVMPDBDUMP_H
12
13#include "llvm/Support/raw_ostream.h"
14
15namespace llvm {
16struct newline {
17 newline(int IndentWidth) : Width(IndentWidth) {}
18 int Width;
19};
20
21inline raw_ostream &operator<<(raw_ostream &OS, const newline &Indent) {
22 OS << "\n";
23 OS.indent(Indent.Width);
24 return OS;
25}
26}
27
28#endif