11#include "llvm/Config/config.h"
13#if LLVM_ENABLE_DIA_SDK
23 std::unique_ptr<IPDBSession> &Session) {
25 if (
Type == PDB_ReaderType::Native)
28#if LLVM_ENABLE_DIA_SDK
31 return make_error<PDBError>(pdb_error_code::dia_sdk_not_present);
36 std::unique_ptr<IPDBSession> &Session) {
38 if (
Type == PDB_ReaderType::Native) {
45#if LLVM_ENABLE_DIA_SDK
48 return make_error<PDBError>(pdb_error_code::dia_sdk_not_present);
Lightweight error class with error context and mandatory checking.
Tagged union holding either a T or a Error.
Error takeError()
Take ownership of the stored error.
reference get()
Returns a reference to the stored T value.
StringRef - Represent a constant reference to a string, i.e.
The instances of the Type class are immutable: once they are created, they are never changed.
static Error createFromExe(StringRef Path, std::unique_ptr< IPDBSession > &Session)
static Error createFromPdb(StringRef Path, std::unique_ptr< IPDBSession > &Session)
static Expected< std::string > searchForPdb(const PdbSearchOptions &Opts)
static Error createFromPdbPath(StringRef PdbPath, std::unique_ptr< IPDBSession > &Session)
Error loadDataForEXE(PDB_ReaderType Type, StringRef Path, std::unique_ptr< IPDBSession > &Session)
PDB_ReaderType
Specifies which PDB reader implementation is to be used.
Error loadDataForPDB(PDB_ReaderType Type, StringRef Path, std::unique_ptr< IPDBSession > &Session)
This is an optimization pass for GlobalISel generic memory operations.