12 #include "llvm/Config/config.h" 14 #if LLVM_ENABLE_DIA_SDK 25 std::unique_ptr<IPDBSession> &Session) {
37 #if LLVM_ENABLE_DIA_SDK 40 return make_error<GenericError>(
"DIA is not installed on the system");
45 std::unique_ptr<IPDBSession> &Session) {
50 #if LLVM_ENABLE_DIA_SDK 53 return make_error<GenericError>(
"DIA is not installed on the system");
static Error createFromExe(StringRef Path, std::unique_ptr< IPDBSession > &Session)
Represents either an error or a value T.
Compute iterated dominance frontiers using a linear time algorithm.
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 ErrorOr< std::unique_ptr< MemoryBuffer > > getFileOrSTDIN(const Twine &Filename, int64_t FileSize=-1, bool RequiresNullTerminator=true)
Open the specified file as a MemoryBuffer, or open stdin if the Filename is "-".
static Error createFromExe(StringRef Path, std::unique_ptr< IPDBSession > &Session)
Lightweight error class with error context and mandatory checking.
static Error createFromPdb(std::unique_ptr< MemoryBuffer > MB, std::unique_ptr< IPDBSession > &Session)
StringRef - Represent a constant reference to a string, i.e.