summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReader.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-04 19:00:50 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-04 19:00:50 +0000
commitfddf530c5d42712643281f2a9032aa00d8fda081 (patch)
treed472d9123b572e8d6a5415a1b27618e4249055c7 /clang/lib/Serialization/ASTReader.cpp
parent2f555fc41552c2ffb5d5163e16c512afaeddf4a6 (diff)
downloadbcm5719-llvm-fddf530c5d42712643281f2a9032aa00d8fda081.tar.gz
bcm5719-llvm-fddf530c5d42712643281f2a9032aa00d8fda081.zip
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. llvm-svn: 136903
Diffstat (limited to 'clang/lib/Serialization/ASTReader.cpp')
-rw-r--r--clang/lib/Serialization/ASTReader.cpp27
1 files changed, 19 insertions, 8 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 2606676b691..e6f63e911fe 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -5621,26 +5621,37 @@ void Module::dump() {
// 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) {
OpenPOWER on IntegriCloud