17 #include "llvm/ADT/StringRef.h"
18 #include "llvm/Support/Compiler.h"
19 #include "llvm/Support/raw_ostream.h"
21 using namespace clang;
22 using namespace serialization;
23 using namespace reader;
31 template<
typename Key,
typename Offset,
unsigned InitialCapacity>
40 llvm::errs() <<
" " << Name <<
":\n";
41 for (
typename MapType::const_iterator I = Map.
begin(), IEnd = Map.
end();
43 llvm::errs() <<
" " << I->first <<
" -> " << I->second <<
"\n";
48 llvm::errs() <<
"\nModule: " <<
FileName <<
"\n";
49 if (!Imports.empty()) {
50 llvm::errs() <<
" Imports: ";
51 for (
unsigned I = 0, N = Imports.size(); I != N; ++I) {
54 llvm::errs() << Imports[I]->FileName;
60 llvm::errs() <<
" Base source location offset: " << SLocEntryBaseOffset
63 llvm::errs() <<
" Base identifier ID: " << BaseIdentifierID <<
'\n'
64 <<
" Number of identifiers: " << LocalNumIdentifiers <<
'\n';
65 dumpLocalRemap(
"Identifier ID local -> global map", IdentifierRemap);
67 llvm::errs() <<
" Base macro ID: " << BaseMacroID <<
'\n'
68 <<
" Number of macros: " << LocalNumMacros <<
'\n';
71 llvm::errs() <<
" Base submodule ID: " << BaseSubmoduleID <<
'\n'
72 <<
" Number of submodules: " << LocalNumSubmodules <<
'\n';
73 dumpLocalRemap(
"Submodule ID local -> global map", SubmoduleRemap);
75 llvm::errs() <<
" Base selector ID: " << BaseSelectorID <<
'\n'
76 <<
" Number of selectors: " << LocalNumSelectors <<
'\n';
79 llvm::errs() <<
" Base preprocessed entity ID: " << BasePreprocessedEntityID
81 <<
" Number of preprocessed entities: "
82 << NumPreprocessedEntities <<
'\n';
84 PreprocessedEntityRemap);
86 llvm::errs() <<
" Base type index: " << BaseTypeIndex <<
'\n'
87 <<
" Number of types: " << LocalNumTypes <<
'\n';
90 llvm::errs() <<
" Base decl ID: " << BaseDeclID <<
'\n'
91 <<
" Number of decls: " << LocalNumDecls <<
'\n';
static void dumpLocalRemap(StringRef Name, const ContinuousRangeMap< Key, Offset, InitialCapacity > &Map)
A map from continuous integer ranges to some value, with a very specialized interface.
void dump()
Dump debugging output for this module.
llvm::OnDiskChainedHashTable< HeaderFileInfoTrait > HeaderFileInfoLookupTable
The on-disk hash table used for known header files.
llvm::OnDiskIterableChainedHashTable< ASTIdentifierLookupTrait > ASTIdentifierLookupTable
The on-disk hash table used to contain information about all of the identifiers in the program.
llvm::OnDiskChainedHashTable< ASTSelectorLookupTrait > ASTSelectorLookupTable
The on-disk hash table used for the global method pool.
The JSON file list parser is used to communicate input to InstallAPI.