]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/llvm-pdbutil/StreamUtil.h
Upgrade our copies of clang, llvm, lldb and libc++ to r319231 from the
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / llvm-pdbutil / StreamUtil.h
1 //===- Streamutil.h - PDB stream utilities ----------------------*- 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_STREAMUTIL_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_STREAMUTIL_H
12
13 #include "llvm/ADT/SmallVector.h"
14
15 #include <string>
16
17 namespace llvm {
18 namespace pdb {
19 class PDBFile;
20 enum class StreamPurpose { NamedStream, ModuleStream, Other };
21
22 void discoverStreamPurposes(PDBFile &File,
23                             SmallVectorImpl<std::string> &Purposes);
24 void discoverStreamPurposes(
25     PDBFile &File,
26     SmallVectorImpl<std::pair<StreamPurpose, std::string>> &Purposes);
27 }
28 }
29
30 #endif