12 #include "llvm/Config/config.h" 14 #if LLVM_ENABLE_DIA_SDK 25 std::unique_ptr<IPDBSession> &Session) {
37 #if LLVM_ENABLE_DIA_SDK 45 std::unique_ptr<IPDBSession> &Session) {
50 #if LLVM_ENABLE_DIA_SDK static Error createFromExe(StringRef Path, std::unique_ptr< IPDBSession > &Session)
Represents either an error or a value T.
This class represents lattice values for constants.
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 errorCodeToError(std::error_code EC)
Helper for converting an std::error_code to a Error.
std::error_code getError() const
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.