2017-03-14 00:28:25 +01:00
|
|
|
//===- Streamutil.h - PDB stream utilities ----------------------*- 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_STREAMUTIL_H
|
|
|
|
#define LLVM_TOOLS_LLVMPDBDUMP_STREAMUTIL_H
|
|
|
|
|
|
|
|
#include "llvm/ADT/SmallVector.h"
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
namespace pdb {
|
|
|
|
class PDBFile;
|
2017-07-10 21:16:49 +02:00
|
|
|
enum class StreamPurpose { NamedStream, ModuleStream, Other };
|
|
|
|
|
2017-03-14 00:28:25 +01:00
|
|
|
void discoverStreamPurposes(PDBFile &File,
|
2017-07-10 21:16:49 +02:00
|
|
|
SmallVectorImpl<std::string> &Purposes);
|
|
|
|
void discoverStreamPurposes(
|
|
|
|
PDBFile &File,
|
|
|
|
SmallVectorImpl<std::pair<StreamPurpose, std::string>> &Purposes);
|
2017-03-14 00:28:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|