Zachary Turner | 9a818ad | 2015-02-22 22:03:38 +0000 | [diff] [blame^] | 1 | //===- 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 | |
| 15 | namespace llvm { |
| 16 | struct newline { |
| 17 | newline(int IndentWidth) : Width(IndentWidth) {} |
| 18 | int Width; |
| 19 | }; |
| 20 | |
| 21 | inline 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 |