#include "llvm/DebugInfo/PDB/Native/DbiStream.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/DebugInfo/MSF/MappedBlockStream.h"
#include "llvm/DebugInfo/PDB/Native/ISectionContribVisitor.h"
#include "llvm/DebugInfo/PDB/Native/PDBFile.h"
#include "llvm/DebugInfo/PDB/Native/RawConstants.h"
#include "llvm/DebugInfo/PDB/Native/RawError.h"
#include "llvm/DebugInfo/PDB/Native/RawTypes.h"
#include "llvm/DebugInfo/PDB/PDBTypes.h"
#include "llvm/Object/COFF.h"
#include "llvm/Support/BinaryStreamArray.h"
#include "llvm/Support/BinaryStreamReader.h"
#include "llvm/Support/Error.h"
#include <cstddef>
#include <cstdint>
usingnamespacellvm;
usingnamespacellvm::codeview;
usingnamespacellvm::msf;
usingnamespacellvm::pdb;
usingnamespacellvm::support;
template <typename ContribType>
static Error loadSectionContribs(FixedStreamArray<ContribType> &Output,
BinaryStreamReader &Reader) { … }
DbiStream::DbiStream(std::unique_ptr<BinaryStream> Stream)
: … { … }
DbiStream::~DbiStream() = default;
Error DbiStream::reload(PDBFile *Pdb) { … }
PdbRaw_DbiVer DbiStream::getDbiVersion() const { … }
uint32_t DbiStream::getAge() const { … }
uint16_t DbiStream::getPublicSymbolStreamIndex() const { … }
uint16_t DbiStream::getGlobalSymbolStreamIndex() const { … }
uint16_t DbiStream::getFlags() const { … }
bool DbiStream::isIncrementallyLinked() const { … }
bool DbiStream::hasCTypes() const { … }
bool DbiStream::isStripped() const { … }
uint16_t DbiStream::getBuildNumber() const { … }
uint16_t DbiStream::getBuildMajorVersion() const { … }
uint16_t DbiStream::getBuildMinorVersion() const { … }
uint16_t DbiStream::getPdbDllRbld() const { … }
uint32_t DbiStream::getPdbDllVersion() const { … }
uint32_t DbiStream::getSymRecordStreamIndex() const { … }
PDB_Machine DbiStream::getMachineType() const { … }
FixedStreamArray<object::coff_section> DbiStream::getSectionHeaders() const { … }
bool DbiStream::hasOldFpoRecords() const { … }
FixedStreamArray<object::FpoData> DbiStream::getOldFpoRecords() const { … }
bool DbiStream::hasNewFpoRecords() const { … }
const DebugFrameDataSubsectionRef &DbiStream::getNewFpoRecords() const { … }
const DbiModuleList &DbiStream::modules() const { … }
FixedStreamArray<SecMapEntry> DbiStream::getSectionMap() const { … }
void DbiStream::visitSectionContributions(
ISectionContribVisitor &Visitor) const { … }
Expected<StringRef> DbiStream::getECName(uint32_t NI) const { … }
Error DbiStream::initializeSectionContributionData() { … }
Error DbiStream::initializeSectionHeadersData(PDBFile *Pdb) { … }
Error DbiStream::initializeOldFpoRecords(PDBFile *Pdb) { … }
Error DbiStream::initializeNewFpoRecords(PDBFile *Pdb) { … }
Expected<std::unique_ptr<msf::MappedBlockStream>>
DbiStream::createIndexedStreamForHeaderType(PDBFile *Pdb,
DbgHeaderType Type) const { … }
BinarySubstreamRef DbiStream::getSectionContributionData() const { … }
BinarySubstreamRef DbiStream::getSecMapSubstreamData() const { … }
BinarySubstreamRef DbiStream::getModiSubstreamData() const { … }
BinarySubstreamRef DbiStream::getFileInfoSubstreamData() const { … }
BinarySubstreamRef DbiStream::getTypeServerMapSubstreamData() const { … }
BinarySubstreamRef DbiStream::getECSubstreamData() const { … }
Error DbiStream::initializeSectionMapData() { … }
uint32_t DbiStream::getDebugStreamIndex(DbgHeaderType Type) const { … }