aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-pdbdump/llvm-pdbdump.h
blob: 74a171810c7ff3c5870bba2a79f5afe827dc5f7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//===- llvm-pdbdump.h ----------------------------------------- *- C++ --*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_TOOLS_LLVMPDBDUMP_LLVMPDBDUMP_H
#define LLVM_TOOLS_LLVMPDBDUMP_LLVMPDBDUMP_H

#include "llvm/Support/raw_ostream.h"

namespace llvm {
struct newline {
  newline(int IndentWidth) : Width(IndentWidth) {}
  int Width;
};

inline raw_ostream &operator<<(raw_ostream &OS, const newline &Indent) {
  OS << "\n";
  OS.indent(Indent.Width);
  return OS;
}
}

#endif