clang  3.9.0
Public Member Functions | Public Attributes | List of all members
clang::serialization::ModuleFile Class Reference

Information about a module that has been loaded by the ASTReader. More...

#include <Module.h>

Collaboration diagram for clang::serialization::ModuleFile:
[legend]

Public Member Functions

 ModuleFile (ModuleKind Kind, unsigned Generation)
 
 ~ModuleFile ()
 
std::string getTimestampFilename () const
 
bool isDirectlyImported () const
 Determine whether this module was directly imported at any point during translation. More...
 
bool isModule () const
 Is this a module file for a module (rather than a PCH or similar). More...
 
void dump ()
 Dump debugging output for this module. More...
 

Public Attributes

unsigned Index
 The index of this module in the list of modules. More...
 
ModuleKind Kind
 The type of this module. More...
 
std::string FileName
 The file name of the module file. More...
 
std::string ModuleName
 The name of the module. More...
 
std::string BaseDirectory
 The base directory of the module. More...
 
std::string OriginalSourceFileName
 The original source file name that was used to build the primary AST file, which may have been modified for relocatable-pch support. More...
 
std::string ActualOriginalSourceFileName
 The actual original source file name that was used to build this AST file. More...
 
FileID OriginalSourceFileID
 The file ID for the original source file that was used to build this AST file. More...
 
std::string OriginalDir
 The directory that the PCH was originally created in. More...
 
std::string ModuleMapPath
 
bool RelocatablePCH
 Whether this precompiled header is a relocatable PCH file. More...
 
bool HasTimestamps
 Whether timestamps are included in this module file. More...
 
const FileEntryFile
 The file entry for the module file. More...
 
ASTFileSignature Signature
 The signature of the module file, which may be used along with size and modification time to identify this particular file. More...
 
bool DirectlyImported
 Whether this module has been directly imported by the user. More...
 
unsigned Generation
 The generation of which this module file is a part. More...
 
std::unique_ptr
< llvm::MemoryBuffer > 
Buffer
 The memory buffer that stores the data associated with this AST file. More...
 
uint64_t SizeInBits
 The size of this file, in bits. More...
 
uint64_t GlobalBitOffset
 The global bit offset (or base) of this module. More...
 
llvm::BitstreamReader StreamFile
 The bitstream reader from which we'll read the AST file. More...
 
llvm::BitstreamCursor Stream
 The main bitstream cursor for the main block. More...
 
SourceLocation DirectImportLoc
 The source location where the module was explicitly or implicitly imported in the local translation unit. More...
 
SourceLocation ImportLoc
 The source location where this module was first imported. More...
 
SourceLocation FirstLoc
 The first source location in this module. More...
 
std::vector< std::unique_ptr
< ModuleFileExtensionReader > > 
ExtensionReaders
 The list of extension readers that are attached to this module file. More...
 
llvm::BitstreamCursor InputFilesCursor
 The cursor to the start of the input-files block. More...
 
const
llvm::support::unaligned_uint64_t * 
InputFileOffsets
 Offsets for all of the input file entries in the AST file. More...
 
std::vector< InputFileInputFilesLoaded
 The input files that have been loaded from this AST file. More...
 
uint64_t InputFilesValidationTimestamp
 If non-zero, specifies the time when we last validated input files. More...
 
llvm::BitstreamCursor SLocEntryCursor
 Cursor used to read source location entries. More...
 
unsigned LocalNumSLocEntries
 The number of source location entries in this AST file. More...
 
int SLocEntryBaseID
 The base ID in the source manager's view of this module. More...
 
unsigned SLocEntryBaseOffset
 The base offset in the source manager's view of this module. More...
 
const uint32_t * SLocEntryOffsets
 Offsets for all of the source location entries in the AST file. More...
 
SmallVector< uint64_t, 4 > PreloadSLocEntries
 SLocEntries that we're going to preload. More...
 
ContinuousRangeMap< uint32_t,
int, 2 > 
SLocRemap
 Remapping table for source locations in this module. More...
 
unsigned LocalNumIdentifiers
 The number of identifiers in this AST file. More...
 
const uint32_t * IdentifierOffsets
 Offsets into the identifier table data. More...
 
serialization::IdentID BaseIdentifierID
 Base identifier ID for identifiers local to this module. More...
 
ContinuousRangeMap< uint32_t,
int, 2 > 
IdentifierRemap
 Remapping table for identifier IDs in this module. More...
 
const char * IdentifierTableData
 Actual data for the on-disk hash table of identifiers. More...
 
void * IdentifierLookupTable
 A pointer to an on-disk hash table of opaque type IdentifierHashTable. More...
 
std::vector< unsignedPreloadIdentifierOffsets
 Offsets of identifiers that we're going to preload within IdentifierTableData. More...
 
llvm::BitstreamCursor MacroCursor
 The cursor to the start of the preprocessor block, which stores all of the macro definitions. More...
 
unsigned LocalNumMacros
 The number of macros in this AST file. More...
 
const uint32_t * MacroOffsets
 Offsets of macros in the preprocessor block. More...
 
serialization::MacroID BaseMacroID
 Base macro ID for macros local to this module. More...
 
ContinuousRangeMap< uint32_t,
int, 2 > 
MacroRemap
 Remapping table for macro IDs in this module. More...
 
uint64_t MacroStartOffset
 The offset of the start of the set of defined macros. More...
 
llvm::BitstreamCursor PreprocessorDetailCursor
 The cursor to the start of the (optional) detailed preprocessing record block. More...
 
uint64_t PreprocessorDetailStartOffset
 The offset of the start of the preprocessor detail cursor. More...
 
serialization::PreprocessedEntityID BasePreprocessedEntityID
 Base preprocessed entity ID for preprocessed entities local to this module. More...
 
ContinuousRangeMap< uint32_t,
int, 2 > 
PreprocessedEntityRemap
 Remapping table for preprocessed entity IDs in this module. More...
 
const PPEntityOffsetPreprocessedEntityOffsets
 
unsigned NumPreprocessedEntities
 
unsigned LocalNumHeaderFileInfos
 The number of local HeaderFileInfo structures. More...
 
const char * HeaderFileInfoTableData
 Actual data for the on-disk hash table of header file information. More...
 
void * HeaderFileInfoTable
 The on-disk hash table that contains information about each of the header files. More...
 
unsigned LocalNumSubmodules
 The number of submodules in this module. More...
 
serialization::SubmoduleID BaseSubmoduleID
 Base submodule ID for submodules local to this module. More...
 
ContinuousRangeMap< uint32_t,
int, 2 > 
SubmoduleRemap
 Remapping table for submodule IDs in this module. More...
 
unsigned LocalNumSelectors
 The number of selectors new to this file. More...
 
const uint32_t * SelectorOffsets
 Offsets into the selector lookup table's data array where each selector resides. More...
 
serialization::SelectorID BaseSelectorID
 Base selector ID for selectors local to this module. More...
 
ContinuousRangeMap< uint32_t,
int, 2 > 
SelectorRemap
 Remapping table for selector IDs in this module. More...
 
const unsigned char * SelectorLookupTableData
 A pointer to the character data that comprises the selector table. More...
 
void * SelectorLookupTable
 A pointer to an on-disk hash table of opaque type ASTSelectorLookupTable. More...
 
llvm::BitstreamCursor DeclsCursor
 DeclsCursor - This is a cursor to the start of the DECLS_BLOCK block. More...
 
unsigned LocalNumDecls
 The number of declarations in this AST file. More...
 
const DeclOffsetDeclOffsets
 Offset of each declaration within the bitstream, indexed by the declaration ID (-1). More...
 
serialization::DeclID BaseDeclID
 Base declaration ID for declarations local to this module. More...
 
ContinuousRangeMap< uint32_t,
int, 2 > 
DeclRemap
 Remapping table for declaration IDs in this module. More...
 
llvm::DenseMap< ModuleFile
*, serialization::DeclID
GlobalToLocalDeclIDs
 Mapping from the module files that this module file depends on to the base declaration ID for that module as it is understood within this module. More...
 
const serialization::DeclIDFileSortedDecls
 Array of file-level DeclIDs sorted by file. More...
 
unsigned NumFileSortedDecls
 
const
serialization::ObjCCategoriesInfo
ObjCCategoriesMap
 Array of category list location information within this module file, sorted by the definition ID. More...
 
unsigned LocalNumObjCCategoriesInMap
 The number of redeclaration info entries in ObjCCategoriesMap. More...
 
SmallVector< uint64_t, 1 > ObjCCategories
 The Objective-C category lists for categories known to this module. More...
 
unsigned LocalNumTypes
 The number of types in this AST file. More...
 
const uint32_t * TypeOffsets
 Offset of each type within the bitstream, indexed by the type ID, or the representation of a Type*. More...
 
serialization::TypeID BaseTypeIndex
 Base type ID for types local to this module as represented in the global type ID space. More...
 
ContinuousRangeMap< uint32_t,
int, 2 > 
TypeRemap
 Remapping table for type IDs in this module. More...
 
SmallVector< uint64_t, 8 > PragmaDiagMappings
 Diagnostic IDs and their mappings that the user changed. More...
 
llvm::SetVector< ModuleFile * > ImportedBy
 List of modules which depend on this module. More...
 
llvm::SetVector< ModuleFile * > Imports
 List of modules which this module depends on. More...
 

Detailed Description

Information about a module that has been loaded by the ASTReader.

Each instance of the Module class corresponds to a single AST file, which may be a precompiled header, precompiled preamble, a module, or an AST file of some sort loaded as the main file, all of which are specific formulations of the general notion of a "module". A module may depend on any number of other modules.

Definition at line 100 of file Serialization/Module.h.

Constructor & Destructor Documentation

ModuleFile::ModuleFile ( ModuleKind  Kind,
unsigned  Generation 
)

Definition at line 23 of file Serialization/Module.cpp.

ModuleFile::~ModuleFile ( )

Member Function Documentation

LLVM_DUMP_METHOD void ModuleFile::dump ( )
std::string clang::serialization::ModuleFile::getTimestampFilename ( ) const
inline
bool clang::serialization::ModuleFile::isDirectlyImported ( ) const
inline

Determine whether this module was directly imported at any point during translation.

Definition at line 446 of file Serialization/Module.h.

References DirectlyImported.

bool clang::serialization::ModuleFile::isModule ( ) const
inline

Is this a module file for a module (rather than a PCH or similar).

Definition at line 449 of file Serialization/Module.h.

References clang::serialization::MK_ExplicitModule, and clang::serialization::MK_ImplicitModule.

Referenced by clang::serialization::ModuleManager::addModule(), and clang::ASTReader::getModuleFileID().

Member Data Documentation

std::string clang::serialization::ModuleFile::ActualOriginalSourceFileName

The actual original source file name that was used to build this AST file.

Definition at line 133 of file Serialization/Module.h.

serialization::DeclID clang::serialization::ModuleFile::BaseDeclID

Base declaration ID for declarations local to this module.

Definition at line 388 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::isDeclIDFromModule().

std::string clang::serialization::ModuleFile::BaseDirectory

The base directory of the module.

Definition at line 120 of file Serialization/Module.h.

Referenced by clang::ASTReader::ResolveImportedPath().

serialization::IdentID clang::serialization::ModuleFile::BaseIdentifierID

Base identifier ID for identifiers local to this module.

Definition at line 255 of file Serialization/Module.h.

Referenced by dump().

serialization::MacroID clang::serialization::ModuleFile::BaseMacroID

Base macro ID for macros local to this module.

Definition at line 291 of file Serialization/Module.h.

Referenced by dump().

serialization::PreprocessedEntityID clang::serialization::ModuleFile::BasePreprocessedEntityID

Base preprocessed entity ID for preprocessed entities local to this module.

Definition at line 310 of file Serialization/Module.h.

Referenced by dump().

serialization::SelectorID clang::serialization::ModuleFile::BaseSelectorID

Base selector ID for selectors local to this module.

Definition at line 356 of file Serialization/Module.h.

Referenced by dump().

serialization::SubmoduleID clang::serialization::ModuleFile::BaseSubmoduleID

Base submodule ID for submodules local to this module.

Definition at line 339 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::getModuleFileID().

serialization::TypeID clang::serialization::ModuleFile::BaseTypeIndex

Base type ID for types local to this module as represented in the global type ID space.

Definition at line 428 of file Serialization/Module.h.

Referenced by dump().

std::unique_ptr<llvm::MemoryBuffer> clang::serialization::ModuleFile::Buffer

The memory buffer that stores the data associated with this AST file.

Definition at line 167 of file Serialization/Module.h.

Referenced by clang::serialization::ModuleManager::addModule().

const DeclOffset* clang::serialization::ModuleFile::DeclOffsets

Offset of each declaration within the bitstream, indexed by the declaration ID (-1).

Definition at line 385 of file Serialization/Module.h.

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::DeclRemap

Remapping table for declaration IDs in this module.

Definition at line 391 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::getGlobalDeclID().

llvm::BitstreamCursor clang::serialization::ModuleFile::DeclsCursor

DeclsCursor - This is a cursor to the start of the DECLS_BLOCK block.

It has read all the abbreviations at the start of the block and is ready to jump around with these in context.

Definition at line 378 of file Serialization/Module.h.

SourceLocation clang::serialization::ModuleFile::DirectImportLoc

The source location where the module was explicitly or implicitly imported in the local translation unit.

If module A depends on and imports module B, both modules will have the same DirectImportLoc, but different ImportLoc (B's ImportLoc will be a source location inside module A).

WARNING: This is largely useless. It doesn't tell you when a module was made visible, just when the first submodule of that module was imported.

Definition at line 190 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadAST().

bool clang::serialization::ModuleFile::DirectlyImported

Whether this module has been directly imported by the user.

Definition at line 160 of file Serialization/Module.h.

Referenced by clang::serialization::ModuleManager::addModule(), and isDirectlyImported().

std::vector<std::unique_ptr<ModuleFileExtensionReader> > clang::serialization::ModuleFile::ExtensionReaders

The list of extension readers that are attached to this module file.

Definition at line 200 of file Serialization/Module.h.

const FileEntry* clang::serialization::ModuleFile::File

The file entry for the module file.

Definition at line 152 of file Serialization/Module.h.

Referenced by clang::serialization::ModuleManager::addModule().

std::string clang::serialization::ModuleFile::FileName
const serialization::DeclID* clang::serialization::ModuleFile::FileSortedDecls

Array of file-level DeclIDs sorted by file.

Definition at line 403 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadSLocEntry().

SourceLocation clang::serialization::ModuleFile::FirstLoc

The first source location in this module.

Definition at line 196 of file Serialization/Module.h.

unsigned clang::serialization::ModuleFile::Generation

The generation of which this module file is a part.

Definition at line 163 of file Serialization/Module.h.

Referenced by clang::serialization::ReadMethodPoolVisitor::operator()().

uint64_t clang::serialization::ModuleFile::GlobalBitOffset

The global bit offset (or base) of this module.

Definition at line 173 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadAST().

llvm::DenseMap<ModuleFile *, serialization::DeclID> clang::serialization::ModuleFile::GlobalToLocalDeclIDs

Mapping from the module files that this module file depends on to the base declaration ID for that module as it is understood within this module.

This is effectively a reverse global-to-local mapping for declaration IDs, so that we can interpret a true global ID (for this translation unit) as a local ID (for this module file).

Definition at line 400 of file Serialization/Module.h.

Referenced by clang::ASTReader::mapGlobalIDToModuleFileGlobalID().

bool clang::serialization::ModuleFile::HasTimestamps

Whether timestamps are included in this module file.

Definition at line 149 of file Serialization/Module.h.

Referenced by clang::serialization::reader::HeaderFileInfoTrait::GetInternalKey().

void* clang::serialization::ModuleFile::HeaderFileInfoTable

The on-disk hash table that contains information about each of the header files.

Definition at line 332 of file Serialization/Module.h.

Referenced by ~ModuleFile().

const char* clang::serialization::ModuleFile::HeaderFileInfoTableData

Actual data for the on-disk hash table of header file information.

This pointer points into a memory buffer, where the on-disk hash table for header file information actually lives.

Definition at line 328 of file Serialization/Module.h.

void* clang::serialization::ModuleFile::IdentifierLookupTable

A pointer to an on-disk hash table of opaque type IdentifierHashTable.

Definition at line 268 of file Serialization/Module.h.

Referenced by ~ModuleFile().

const uint32_t* clang::serialization::ModuleFile::IdentifierOffsets

Offsets into the identifier table data.

This array is indexed by the identifier ID (-1), and provides the offset into IdentifierTableData where the string data is stored.

Definition at line 252 of file Serialization/Module.h.

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::IdentifierRemap

Remapping table for identifier IDs in this module.

Definition at line 258 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::getGlobalIdentifierID().

const char* clang::serialization::ModuleFile::IdentifierTableData

Actual data for the on-disk hash table of identifiers.

This pointer points into a memory buffer, where the on-disk hash table for identifiers actually lives.

Definition at line 264 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadAST().

llvm::SetVector<ModuleFile *> clang::serialization::ModuleFile::ImportedBy

List of modules which depend on this module.

Definition at line 439 of file Serialization/Module.h.

Referenced by clang::serialization::ModuleManager::addModule(), and clang::serialization::ModuleManager::visit().

SourceLocation clang::serialization::ModuleFile::ImportLoc
llvm::SetVector<ModuleFile *> clang::serialization::ModuleFile::Imports
unsigned clang::serialization::ModuleFile::Index

The index of this module in the list of modules.

Definition at line 108 of file Serialization/Module.h.

Referenced by clang::serialization::ModuleManager::addModule(), and clang::serialization::ModuleManager::visit().

const llvm::support::unaligned_uint64_t* clang::serialization::ModuleFile::InputFileOffsets

Offsets for all of the input file entries in the AST file.

Definition at line 207 of file Serialization/Module.h.

llvm::BitstreamCursor clang::serialization::ModuleFile::InputFilesCursor

The cursor to the start of the input-files block.

Definition at line 204 of file Serialization/Module.h.

std::vector<InputFile> clang::serialization::ModuleFile::InputFilesLoaded

The input files that have been loaded from this AST file.

Definition at line 210 of file Serialization/Module.h.

uint64_t clang::serialization::ModuleFile::InputFilesValidationTimestamp

If non-zero, specifies the time when we last validated input files.

Zero means we never validated them.

The time is specified in seconds since the start of the Epoch.

Definition at line 216 of file Serialization/Module.h.

Referenced by clang::serialization::ModuleManager::addModule().

ModuleKind clang::serialization::ModuleFile::Kind
unsigned clang::serialization::ModuleFile::LocalNumDecls

The number of declarations in this AST file.

Definition at line 381 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::isDeclIDFromModule().

unsigned clang::serialization::ModuleFile::LocalNumHeaderFileInfos

The number of local HeaderFileInfo structures.

Definition at line 321 of file Serialization/Module.h.

unsigned clang::serialization::ModuleFile::LocalNumIdentifiers

The number of identifiers in this AST file.

Definition at line 245 of file Serialization/Module.h.

Referenced by dump().

unsigned clang::serialization::ModuleFile::LocalNumMacros

The number of macros in this AST file.

Definition at line 281 of file Serialization/Module.h.

Referenced by dump().

unsigned clang::serialization::ModuleFile::LocalNumObjCCategoriesInMap

The number of redeclaration info entries in ObjCCategoriesMap.

Definition at line 411 of file Serialization/Module.h.

unsigned clang::serialization::ModuleFile::LocalNumSelectors

The number of selectors new to this file.

This is the number of entries in SelectorOffsets.

Definition at line 349 of file Serialization/Module.h.

Referenced by dump().

unsigned clang::serialization::ModuleFile::LocalNumSLocEntries

The number of source location entries in this AST file.

Definition at line 224 of file Serialization/Module.h.

unsigned clang::serialization::ModuleFile::LocalNumSubmodules

The number of submodules in this module.

Definition at line 336 of file Serialization/Module.h.

Referenced by dump().

unsigned clang::serialization::ModuleFile::LocalNumTypes

The number of types in this AST file.

Definition at line 420 of file Serialization/Module.h.

Referenced by dump().

llvm::BitstreamCursor clang::serialization::ModuleFile::MacroCursor

The cursor to the start of the preprocessor block, which stores all of the macro definitions.

Definition at line 278 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadMacroRecord(), and clang::ASTReader::resolvePendingMacro().

const uint32_t* clang::serialization::ModuleFile::MacroOffsets

Offsets of macros in the preprocessor block.

This array is indexed by the macro ID (-1), and provides the offset into the preprocessor block where macro definitions are stored.

Definition at line 288 of file Serialization/Module.h.

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::MacroRemap

Remapping table for macro IDs in this module.

Definition at line 294 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::getGlobalMacroID().

uint64_t clang::serialization::ModuleFile::MacroStartOffset

The offset of the start of the set of defined macros.

Definition at line 297 of file Serialization/Module.h.

std::string clang::serialization::ModuleFile::ModuleMapPath

Definition at line 143 of file Serialization/Module.h.

std::string clang::serialization::ModuleFile::ModuleName
unsigned clang::serialization::ModuleFile::NumFileSortedDecls

Definition at line 404 of file Serialization/Module.h.

unsigned clang::serialization::ModuleFile::NumPreprocessedEntities

Definition at line 316 of file Serialization/Module.h.

Referenced by dump().

SmallVector<uint64_t, 1> clang::serialization::ModuleFile::ObjCCategories

The Objective-C category lists for categories known to this module.

Definition at line 415 of file Serialization/Module.h.

const serialization::ObjCCategoriesInfo* clang::serialization::ModuleFile::ObjCCategoriesMap

Array of category list location information within this module file, sorted by the definition ID.

Definition at line 408 of file Serialization/Module.h.

std::string clang::serialization::ModuleFile::OriginalDir

The directory that the PCH was originally created in.

Used to allow resolving headers even after headers+PCH was moved to a new path.

Definition at line 141 of file Serialization/Module.h.

Referenced by clang::ASTReader::getSourceDescriptor().

FileID clang::serialization::ModuleFile::OriginalSourceFileID

The file ID for the original source file that was used to build this AST file.

Definition at line 137 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadAST().

std::string clang::serialization::ModuleFile::OriginalSourceFileName

The original source file name that was used to build the primary AST file, which may have been modified for relocatable-pch support.

Definition at line 129 of file Serialization/Module.h.

Referenced by clang::ASTReader::getOriginalSourceFile(), and clang::ASTReader::getSourceDescriptor().

SmallVector<uint64_t, 8> clang::serialization::ModuleFile::PragmaDiagMappings

Diagnostic IDs and their mappings that the user changed.

Definition at line 436 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadPragmaDiagnosticMappings().

std::vector<unsigned> clang::serialization::ModuleFile::PreloadIdentifierOffsets

Offsets of identifiers that we're going to preload within IdentifierTableData.

Definition at line 272 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadAST().

SmallVector<uint64_t, 4> clang::serialization::ModuleFile::PreloadSLocEntries

SLocEntries that we're going to preload.

Definition at line 237 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadAST().

const PPEntityOffset* clang::serialization::ModuleFile::PreprocessedEntityOffsets
ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::PreprocessedEntityRemap

Remapping table for preprocessed entity IDs in this module.

Definition at line 313 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::getGlobalPreprocessedEntityID().

llvm::BitstreamCursor clang::serialization::ModuleFile::PreprocessorDetailCursor

The cursor to the start of the (optional) detailed preprocessing record block.

Definition at line 303 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadPreprocessedEntity().

uint64_t clang::serialization::ModuleFile::PreprocessorDetailStartOffset

The offset of the start of the preprocessor detail cursor.

Definition at line 306 of file Serialization/Module.h.

bool clang::serialization::ModuleFile::RelocatablePCH

Whether this precompiled header is a relocatable PCH file.

Definition at line 146 of file Serialization/Module.h.

void* clang::serialization::ModuleFile::SelectorLookupTable

A pointer to an on-disk hash table of opaque type ASTSelectorLookupTable.

This hash table provides the IDs of all selectors, and the associated instance and factory methods.

Definition at line 371 of file Serialization/Module.h.

Referenced by clang::serialization::ReadMethodPoolVisitor::operator()(), and ~ModuleFile().

const unsigned char* clang::serialization::ModuleFile::SelectorLookupTableData

A pointer to the character data that comprises the selector table.

The SelectorOffsets table refers into this memory.

Definition at line 364 of file Serialization/Module.h.

const uint32_t* clang::serialization::ModuleFile::SelectorOffsets

Offsets into the selector lookup table's data array where each selector resides.

Definition at line 353 of file Serialization/Module.h.

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::SelectorRemap

Remapping table for selector IDs in this module.

Definition at line 359 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::getGlobalSelectorID().

ASTFileSignature clang::serialization::ModuleFile::Signature

The signature of the module file, which may be used along with size and modification time to identify this particular file.

Definition at line 156 of file Serialization/Module.h.

Referenced by clang::serialization::ModuleManager::addModule(), and clang::ASTReader::getSourceDescriptor().

uint64_t clang::serialization::ModuleFile::SizeInBits

The size of this file, in bits.

Definition at line 170 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadAST().

int clang::serialization::ModuleFile::SLocEntryBaseID

The base ID in the source manager's view of this module.

Definition at line 227 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadAST(), and clang::ASTReader::ReadSLocEntry().

unsigned clang::serialization::ModuleFile::SLocEntryBaseOffset

The base offset in the source manager's view of this module.

Definition at line 230 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::ReadSLocEntry().

llvm::BitstreamCursor clang::serialization::ModuleFile::SLocEntryCursor

Cursor used to read source location entries.

Definition at line 221 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadSLocEntry().

const uint32_t* clang::serialization::ModuleFile::SLocEntryOffsets

Offsets for all of the source location entries in the AST file.

Definition at line 234 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadSLocEntry().

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::SLocRemap

Remapping table for source locations in this module.

Definition at line 240 of file Serialization/Module.h.

Referenced by clang::ASTReader::TranslateSourceLocation().

llvm::BitstreamCursor clang::serialization::ModuleFile::Stream

The main bitstream cursor for the main block.

Definition at line 179 of file Serialization/Module.h.

Referenced by clang::ASTReader::ReadAST().

llvm::BitstreamReader clang::serialization::ModuleFile::StreamFile

The bitstream reader from which we'll read the AST file.

Definition at line 176 of file Serialization/Module.h.

Referenced by clang::serialization::ModuleManager::addModule().

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::SubmoduleRemap

Remapping table for submodule IDs in this module.

Definition at line 342 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::getGlobalSubmoduleID().

const uint32_t* clang::serialization::ModuleFile::TypeOffsets

Offset of each type within the bitstream, indexed by the type ID, or the representation of a Type*.

Definition at line 424 of file Serialization/Module.h.

ContinuousRangeMap<uint32_t, int, 2> clang::serialization::ModuleFile::TypeRemap

Remapping table for type IDs in this module.

Definition at line 431 of file Serialization/Module.h.

Referenced by dump(), and clang::ASTReader::getGlobalTypeID().


The documentation for this class was generated from the following files: