003 File Manager
Current Path:
/usr/src/contrib/llvm-project/llvm/lib/DebugInfo/PDB
usr
/
src
/
contrib
/
llvm-project
/
llvm
/
lib
/
DebugInfo
/
PDB
/
📁
..
📁
DIA
📄
GenericError.cpp
(1.99 KB)
📄
IPDBSourceFile.cpp
(1.09 KB)
📁
Native
📄
PDB.cpp
(1.81 KB)
📄
PDBContext.cpp
(4.65 KB)
📄
PDBExtras.cpp
(16.74 KB)
📄
PDBInterfaceAnchors.cpp
(1.41 KB)
📄
PDBSymDumper.cpp
(4.21 KB)
📄
PDBSymbol.cpp
(8.2 KB)
📄
PDBSymbolAnnotation.cpp
(624 B)
📄
PDBSymbolBlock.cpp
(654 B)
📄
PDBSymbolCompiland.cpp
(3.87 KB)
📄
PDBSymbolCompilandDetails.cpp
(678 B)
📄
PDBSymbolCompilandEnv.cpp
(927 B)
📄
PDBSymbolCustom.cpp
(815 B)
📄
PDBSymbolData.cpp
(2.28 KB)
📄
PDBSymbolExe.cpp
(890 B)
📄
PDBSymbolFunc.cpp
(3.4 KB)
📄
PDBSymbolFuncDebugEnd.cpp
(670 B)
📄
PDBSymbolFuncDebugStart.cpp
(674 B)
📄
PDBSymbolLabel.cpp
(612 B)
📄
PDBSymbolPublicSymbol.cpp
(670 B)
📄
PDBSymbolThunk.cpp
(612 B)
📄
PDBSymbolTypeArray.cpp
(717 B)
📄
PDBSymbolTypeBaseClass.cpp
(672 B)
📄
PDBSymbolTypeBuiltin.cpp
(625 B)
📄
PDBSymbolTypeCustom.cpp
(666 B)
📄
PDBSymbolTypeDimension.cpp
(676 B)
📄
PDBSymbolTypeEnum.cpp
(669 B)
📄
PDBSymbolTypeFriend.cpp
(666 B)
📄
PDBSymbolTypeFunctionArg.cpp
(633 B)
📄
PDBSymbolTypeFunctionSig.cpp
(3.01 KB)
📄
PDBSymbolTypeManaged.cpp
(667 B)
📄
PDBSymbolTypePointer.cpp
(767 B)
📄
PDBSymbolTypeTypedef.cpp
(626 B)
📄
PDBSymbolTypeUDT.cpp
(954 B)
📄
PDBSymbolTypeVTable.cpp
(624 B)
📄
PDBSymbolTypeVTableShape.cpp
(676 B)
📄
PDBSymbolUnknown.cpp
(658 B)
📄
PDBSymbolUsingNamespace.cpp
(674 B)
📄
UDTLayout.cpp
(10.84 KB)
Editing: PDB.cpp
//===- PDB.cpp - base header file for creating a PDB reader ---------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/DebugInfo/PDB/PDB.h" #include "llvm/ADT/StringRef.h" #include "llvm/Config/config.h" #include "llvm/DebugInfo/PDB/GenericError.h" #if LLVM_ENABLE_DIA_SDK #include "llvm/DebugInfo/PDB/DIA/DIASession.h" #endif #include "llvm/DebugInfo/PDB/Native/NativeSession.h" #include "llvm/Support/Error.h" #include "llvm/Support/MemoryBuffer.h" using namespace llvm; using namespace llvm::pdb; Error llvm::pdb::loadDataForPDB(PDB_ReaderType Type, StringRef Path, std::unique_ptr<IPDBSession> &Session) { // Create the correct concrete instance type based on the value of Type. if (Type == PDB_ReaderType::Native) return NativeSession::createFromPdbPath(Path, Session); #if LLVM_ENABLE_DIA_SDK return DIASession::createFromPdb(Path, Session); #else return make_error<PDBError>(pdb_error_code::dia_sdk_not_present); #endif } Error llvm::pdb::loadDataForEXE(PDB_ReaderType Type, StringRef Path, std::unique_ptr<IPDBSession> &Session) { // Create the correct concrete instance type based on the value of Type. if (Type == PDB_ReaderType::Native) { Expected<std::string> PdbPath = NativeSession::searchForPdb({Path}); if (!PdbPath) return PdbPath.takeError(); return NativeSession::createFromPdbPath(PdbPath.get(), Session); } #if LLVM_ENABLE_DIA_SDK return DIASession::createFromExe(Path, Session); #else return make_error<PDBError>(pdb_error_code::dia_sdk_not_present); #endif }
Upload File
Create Folder