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
64 llvm::errs() <<
" Base identifier ID: " << BaseIdentifierID <<
'\n' 65 <<
" Number of identifiers: " << LocalNumIdentifiers <<
'\n';
66 dumpLocalRemap(
"Identifier ID local -> global map", IdentifierRemap);
68 llvm::errs() <<
" Base macro ID: " << BaseMacroID <<
'\n' 69 <<
" Number of macros: " << LocalNumMacros <<
'\n';
72 llvm::errs() <<
" Base submodule ID: " << BaseSubmoduleID <<
'\n' 73 <<
" Number of submodules: " << LocalNumSubmodules <<
'\n';
74 dumpLocalRemap(
"Submodule ID local -> global map", SubmoduleRemap);
76 llvm::errs() <<
" Base selector ID: " << BaseSelectorID <<
'\n' 77 <<
" Number of selectors: " << LocalNumSelectors <<
'\n';
80 llvm::errs() <<
" Base preprocessed entity ID: " << BasePreprocessedEntityID
82 <<
" Number of preprocessed entities: " 83 << NumPreprocessedEntities <<
'\n';
85 PreprocessedEntityRemap);
87 llvm::errs() <<
" Base type index: " << BaseTypeIndex <<
'\n' 88 <<
" Number of types: " << LocalNumTypes <<
'\n';
91 llvm::errs() <<
" Base decl ID: " << BaseDeclID <<
'\n' 92 <<
" Number of decls: " << LocalNumDecls <<
'\n';
static void dumpLocalRemap(StringRef Name, const ContinuousRangeMap< Key, Offset, InitialCapacity > &Map)
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.
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...