LLVM: lib/DebugInfo/PDB/PDB.cpp Source File (original) (raw)
1
2
3
4
5
6
7
8
11#include "llvm/Config/config.h"
13#if LLVM_ENABLE_DIA_SDK
15#endif
18
19using namespace llvm;
21
23 std::unique_ptr &Session) {
24
27
28#if LLVM_ENABLE_DIA_SDK
30#else
32#endif
33}
34
36 std::unique_ptr &Session) {
37
40 if (!PdbPath)
43 }
44
45#if LLVM_ENABLE_DIA_SDK
47#else
49#endif
50}
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.
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)
LLVM_ABI Error loadDataForEXE(PDB_ReaderType Type, StringRef Path, std::unique_ptr< IPDBSession > &Session)
Definition PDB.cpp:35
PDB_ReaderType
Specifies which PDB reader implementation is to be used.
LLVM_ABI Error loadDataForPDB(PDB_ReaderType Type, StringRef Path, std::unique_ptr< IPDBSession > &Session)
Definition PDB.cpp:22
This is an optimization pass for GlobalISel generic memory operations.
Error make_error(ArgTs &&... Args)
Make a Error instance representing failure using the given error info type.