[cfe-commits] r136903 - /cfe/trunk/lib/Serialization/ASTReader.cpp
Douglas Gregor
dgregor at apple.com
Thu Aug 4 12:00:50 PDT 2011
Author: dgregor
Date: Thu Aug 4 14:00:50 2011
New Revision: 136903
URL: http://llvm.org/viewvc/llvm-project?rev=136903&view=rev
Log:
Clean up the debug dump for a Module, so the local->global maps are
clearly called out, and add the missing local -> global selector map
output.
Modified:
cfe/trunk/lib/Serialization/ASTReader.cpp
Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=136903&r1=136902&r2=136903&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Thu Aug 4 14:00:50 2011
@@ -5621,26 +5621,37 @@
// Remapping tables.
llvm::errs() << " Base source location offset: " << SLocEntryBaseOffset
<< '\n';
- dumpLocalRemap("Source location offset map", SLocRemap);
+ dumpLocalRemap("Source location offset local -> global map", SLocRemap);
+
llvm::errs() << " Base identifier ID: " << BaseIdentifierID << '\n'
<< " Number of identifiers: " << LocalNumIdentifiers << '\n';
- dumpLocalRemap("Identifier ID map", IdentifierRemap);
+ dumpLocalRemap("Identifier ID local -> global map", IdentifierRemap);
+
+ llvm::errs() << " Base selector ID: " << BaseSelectorID << '\n'
+ << " Number of selectors: " << LocalNumSelectors << '\n';
+ dumpLocalRemap("Selector ID local -> global map", SelectorRemap);
+
llvm::errs() << " Base preprocessed entity ID: " << BasePreprocessedEntityID
<< '\n'
<< "Number of preprocessed entities: "
<< NumPreallocatedPreprocessingEntities << '\n';
- dumpLocalRemap("Preprocessed entity ID map", PreprocessedEntityRemap);
- llvm::errs() << " Base type index: " << BaseTypeIndex << '\n'
- << " Number of types: " << LocalNumTypes << '\n';
- dumpLocalRemap("Type index map", TypeRemap);
+ dumpLocalRemap("Preprocessed entity ID local -> global map",
+ PreprocessedEntityRemap);
+
llvm::errs() << " Base macro definition ID: " << BaseMacroDefinitionID
<< '\n'
<< " Number of macro definitions: " << LocalNumMacroDefinitions
<< '\n';
- dumpLocalRemap("Macro definition ID map", MacroDefinitionRemap);
+ dumpLocalRemap("Macro definition ID local -> global map",
+ MacroDefinitionRemap);
+
+ llvm::errs() << " Base type index: " << BaseTypeIndex << '\n'
+ << " Number of types: " << LocalNumTypes << '\n';
+ dumpLocalRemap("Type index local -> global map", TypeRemap);
+
llvm::errs() << " Base decl ID: " << BaseDeclID << '\n'
<< " Number of decls: " << LocalNumDecls << '\n';
- dumpLocalRemap("Decl ID map", DeclRemap);
+ dumpLocalRemap("Decl ID local -> global map", DeclRemap);
}
Module *ModuleManager::lookup(StringRef Name) {
More information about the cfe-commits
mailing list