13 #include "llvm/Config/config.h"
17 #if LLVM_ENABLE_DIA_SDK
25 using namespace llvm::pdb;
28 std::unique_ptr<IPDBSession> &Session) {
33 #if LLVM_ENABLE_DIA_SDK
36 return llvm::make_error<GenericError>(
"DIA is not installed on the system");
41 std::unique_ptr<IPDBSession> &Session) {
46 #if LLVM_ENABLE_DIA_SDK
49 return llvm::make_error<GenericError>(
"DIA is not installed on the system");
PDB_ReaderType
Specifies which PDB reader implementation is to be used.
static Error createFromPdb(StringRef Path, std::unique_ptr< IPDBSession > &Session)
Error loadDataForEXE(PDB_ReaderType Type, StringRef Path, std::unique_ptr< IPDBSession > &Session)
The instances of the Type class are immutable: once they are created, they are never changed...
Error loadDataForPDB(PDB_ReaderType Type, StringRef Path, std::unique_ptr< IPDBSession > &Session)
static Error createFromPdb(StringRef Path, std::unique_ptr< IPDBSession > &Session)
static Error createFromExe(StringRef Path, std::unique_ptr< IPDBSession > &Session)
static Error createFromExe(StringRef Path, std::unique_ptr< IPDBSession > &Session)
Lightweight error class with error context and mandatory checking.
StringRef - Represent a constant reference to a string, i.e.