blob: 6d734dc2f243ac40913195d111a4f25aa37f7fbe [file] [log] [blame]
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01001//===- PDB.h - base header file for creating a PDB reader -------*- C++ -*-===//
2//
Andrew Walbran16937d02019-10-22 13:54:20 +01003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Andrew Scull5e1ddfa2018-08-14 10:06:54 +01006//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLVM_DEBUGINFO_PDB_PDB_H
10#define LLVM_DEBUGINFO_PDB_PDB_H
11
12#include "llvm/ADT/StringRef.h"
13#include "llvm/DebugInfo/PDB/PDBTypes.h"
14#include "llvm/Support/Error.h"
15#include <memory>
16
17namespace llvm {
18namespace pdb {
19
20class IPDBSession;
21
22Error loadDataForPDB(PDB_ReaderType Type, StringRef Path,
23 std::unique_ptr<IPDBSession> &Session);
24
25Error loadDataForEXE(PDB_ReaderType Type, StringRef Path,
26 std::unique_ptr<IPDBSession> &Session);
27
28} // end namespace pdb
29} // end namespace llvm
30
31#endif // LLVM_DEBUGINFO_PDB_PDB_H