18 #include "llvm/ADT/StringRef.h" 19 #include "llvm/Support/Compiler.h" 20 #include "llvm/Support/raw_ostream.h" 22 using namespace clang;
23 using namespace serialization;
24 using namespace reader;
32 template<
typename Key,
typename Offset,
unsigned InitialCapacity>
41 llvm::errs() <<
" " << Name <<
":\n";
42 for (
typename MapType::const_iterator I = Map.
begin(), IEnd = Map.
end();
44 llvm::errs() <<
" " << I->first <<
" -> " << I->second <<
"\n";
49 llvm::errs() <<
"\nModule: " << FileName <<
"\n";
50 if (!Imports.empty()) {
51 llvm::errs() <<
" Imports: ";
52 for (
unsigned I = 0, N = Imports.size(); I != N; ++I) {
55 llvm::errs() << Imports[I]->FileName;
61 llvm::errs() <<
" Base source location offset: " << SLocEntryBaseOffset
65 llvm::errs() <<
" Base identifier ID: " << BaseIdentifierID <<
'\n' 66 <<
" Number of identifiers: " << LocalNumIdentifiers <<
'\n';
67 dumpLocalRemap(
"Identifier ID local -> global map", IdentifierRemap);
69 llvm::errs() <<
" Base macro ID: " << BaseMacroID <<
'\n' 70 <<
" Number of macros: " << LocalNumMacros <<
'\n';
73 llvm::errs() <<
" Base submodule ID: " << BaseSubmoduleID <<
'\n' 74 <<
" Number of submodules: " << LocalNumSubmodules <<
'\n';
75 dumpLocalRemap(
"Submodule ID local -> global map", SubmoduleRemap);
77 llvm::errs() <<
" Base selector ID: " << BaseSelectorID <<
'\n' 78 <<
" Number of selectors: " << LocalNumSelectors <<
'\n';
81 llvm::errs() <<
" Base preprocessed entity ID: " << BasePreprocessedEntityID
83 <<
" Number of preprocessed entities: " 84 << NumPreprocessedEntities <<
'\n';
86 PreprocessedEntityRemap);
88 llvm::errs() <<
" Base type index: " << BaseTypeIndex <<
'\n' 89 <<
" Number of types: " << LocalNumTypes <<
'\n';
92 llvm::errs() <<
" Base decl ID: " << BaseDeclID <<
'\n' 93 <<
" Number of decls: " << LocalNumDecls <<
'\n';
llvm::OnDiskChainedHashTable< HeaderFileInfoTrait > HeaderFileInfoLookupTable
The on-disk hash table used for known header files.
void dump()
Dump debugging output for this module.
Dataflow Directional Tag Classes.
static void dumpLocalRemap(StringRef Name, const ContinuousRangeMap< Key, Offset, InitialCapacity > &Map)
llvm::OnDiskChainedHashTable< ASTSelectorLookupTrait > ASTSelectorLookupTable
The on-disk hash table used for the global method pool.
A map from continuous integer ranges to some value, with a very specialized interface.
llvm::OnDiskIterableChainedHashTable< ASTIdentifierLookupTrait > ASTIdentifierLookupTable
The on-disk hash table used to contain information about all of the identifiers in the program...