]> granicus.if.org Git - clang/commitdiff
Clean up the debug dump for a Module, so the local->global maps are
authorDouglas Gregor <dgregor@apple.com>
Thu, 4 Aug 2011 19:00:50 +0000 (19:00 +0000)
committerDouglas Gregor <dgregor@apple.com>
Thu, 4 Aug 2011 19:00:50 +0000 (19:00 +0000)
clearly called out, and add the missing local -> global selector map
output.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136903 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Serialization/ASTReader.cpp

index 2606676b691b17d7f395fab585b10279da63a248..e6f63e911feff28ce840d2a5e616a7e9c9ab43dd 100644 (file)
@@ -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) {