[llvm-pdbdump] Add support for dumping global variables.
[oota-llvm.git] / tools / llvm-pdbdump / TypeDumper.cpp
index 7b7059614410a51b6cda08317d3a9537e2894fcb..d0df9fec7ba596dae39d5e6a88a625ca5c9c3c3f 100644 (file)
 #include "TypeDumper.h"
 
 #include "ClassDefinitionDumper.h"
-#include "FunctionDumper.h"
 #include "llvm-pdbdump.h"
 #include "TypedefDumper.h"
 
 #include "llvm/DebugInfo/PDB/IPDBSession.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolExe.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeEnum.h"
-#include "llvm/DebugInfo/PDB/PDBSymbolTypeFunctionSig.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeTypedef.h"
 #include "llvm/DebugInfo/PDB/PDBSymbolTypeUDT.h"
 
@@ -32,12 +30,6 @@ void TypeDumper::start(const PDBSymbolExe &Exe, raw_ostream &OS, int Indent) {
   while (auto Enum = Enums->getNext())
     Enum->dump(OS, Indent + 2, *this);
 
-  auto FuncSigs = Exe.findAllChildren<PDBSymbolTypeFunctionSig>();
-  OS << newline(Indent);
-  OS << "Function Signatures: (" << FuncSigs->getChildCount() << " items)";
-  while (auto Sig = FuncSigs->getNext())
-    Sig->dump(OS, Indent + 2, *this);
-
   auto Typedefs = Exe.findAllChildren<PDBSymbolTypeTypedef>();
   OS << newline(Indent) << "Typedefs: (" << Typedefs->getChildCount()
      << " items)";
@@ -62,15 +54,6 @@ void TypeDumper::dump(const PDBSymbolTypeEnum &Symbol, raw_ostream &OS,
   OS << "enum " << Symbol.getName();
 }
 
-void TypeDumper::dump(const PDBSymbolTypeFunctionSig &Symbol, raw_ostream &OS,
-                      int Indent) {
-  if (!InlineDump)
-    OS << newline(Indent);
-
-  FunctionDumper Dumper;
-  Dumper.start(Symbol, nullptr, FunctionDumper::PointerType::None, OS);
-}
-
 void TypeDumper::dump(const PDBSymbolTypeTypedef &Symbol, raw_ostream &OS,
                       int Indent) {
   if (!InlineDump)