1//===- DbiModuleDescriptor.cpp - PDB module information -------------------===// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7//===----------------------------------------------------------------------===// Analysis containing CSE Info
Provides read only access to a subclass of BinaryStream.
Error readObject(const T *&Dest)
Get a pointer to an object of type T from the underlying stream, as if by memcpy, and store the resul...
Error readCString(StringRef &Dest)
Read a null terminated string from Dest.
BinaryStreamRef is to BinaryStream what ArrayRef is to an Array.
Lightweight error class with error context and mandatory checking.
static ErrorSuccess success()
Create a success value.
StringRef - Represent a constant reference to a string, i.e.
std::string str() const
str - Get the contents as an std::string.
uint32_t getSymbolDebugInfoByteSize() const
const SectionContrib & getSectionContrib() const
uint32_t getRecordLength() const
uint32_t getPdbFilePathNameIndex() const
uint32_t getC13LineInfoByteSize() const
uint32_t getNumberOfFiles() const
uint32_t getSourceFileNameIndex() const
uint16_t getTypeServerIndex() const
static Error initialize(BinaryStreamRef Stream, DbiModuleDescriptor &Info)
StringRef getObjFileName() const
uint16_t getModuleStreamIndex() const
StringRef getModuleName() const
uint32_t getC11LineInfoByteSize() const
This is an optimization pass for GlobalISel generic memory operations.
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
static const uint16_t TypeServerIndexShift
static const uint16_t HasECFlagMask
uint16_t fWritten : 1; // True if DbiModuleDescriptor is dirty uint16_t fECEnabled : 1; // Is EC symb...
static const uint16_t TypeServerIndexMask
The header preceding each entry in the Module Info substream of the DBI stream.
support::ulittle32_t PdbFilePathNI
Name Index for path to compiler PDB.
support::ulittle16_t ModDiStream
Stream Number of module debug info.
support::ulittle16_t NumFiles
Number of files contributing to this module.
support::ulittle16_t Flags
See ModInfoFlags definition.
support::ulittle32_t SrcFileNameNI
Name Index for src file name.
SectionContrib SC
First section contribution of this module.
support::ulittle32_t C13Bytes
Size of C13 line number info in above stream.
support::ulittle32_t SymBytes
Size of local symbol debug info in above stream.
support::ulittle32_t C11Bytes
Size of C11 line number info in above stream.