1 //===- 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 "PDBTypes.h" 14 #include "llvm/Support/Error.h" 15 #include <memory> 16 #include <system_error> 17 18 namespace llvm { 19 class StringRef; 20 21 namespace pdb { 22 23 Error loadDataForPDB(PDB_ReaderType Type, StringRef Path, 24 std::unique_ptr<IPDBSession> &Session); 25 26 Error loadDataForEXE(PDB_ReaderType Type, StringRef Path, 27 std::unique_ptr<IPDBSession> &Session); 28 } 29 } 30 #endif 31