blob: 9f9da39ca6ccd476e517427887ffc3d5a006b039 [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- PDB.h - base header file for creating a PDB reader -------*- 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_DEBUGINFO_PDB_PDB_H
11#define LLVM_DEBUGINFO_PDB_PDB_H
12
13#include "llvm/ADT/StringRef.h"
14#include "llvm/DebugInfo/PDB/PDBTypes.h"
15#include "llvm/Support/Error.h"
16#include <memory>
17
18namespace llvm {
19namespace pdb {
20
21class IPDBSession;
22
23Error loadDataForPDB(PDB_ReaderType Type, StringRef Path,
24 std::unique_ptr<IPDBSession> &Session);
25
26Error loadDataForEXE(PDB_ReaderType Type, StringRef Path,
27 std::unique_ptr<IPDBSession> &Session);
28
29} // end namespace pdb
30} // end namespace llvm
31
32#endif // LLVM_DEBUGINFO_PDB_PDB_H