12 #include "llvm/Config/config.h"
14 #if LLVM_ENABLE_DIA_SDK
21 using namespace llvm::pdb;
24 std::unique_ptr<IPDBSession> &Session) {
29 #if LLVM_ENABLE_DIA_SDK
32 return make_error<GenericError>(
"DIA is not installed on the system");
37 std::unique_ptr<IPDBSession> &Session) {
42 #if LLVM_ENABLE_DIA_SDK
45 return make_error<GenericError>(
"DIA is not installed on the system");
static Error createFromExe(StringRef Path, std::unique_ptr< IPDBSession > &Session)
PDB_ReaderType
Specifies which PDB reader implementation is to be used.
static Error createFromPdb(StringRef Path, std::unique_ptr< IPDBSession > &Session)
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 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.