Home | History | Annotate | Download | only in llvm-pdbdump
      1 //===- CompilandDumper.h - llvm-pdbdump compiland symbol dumper *- C++ --*-===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 #ifndef LLVM_TOOLS_LLVMPDBDUMP_COMPILANDDUMPER_H
     11 #define LLVM_TOOLS_LLVMPDBDUMP_COMPILANDDUMPER_H
     12 
     13 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
     14 
     15 namespace llvm {
     16 namespace pdb {
     17 
     18 class LinePrinter;
     19 
     20 typedef int CompilandDumpFlags;
     21 class CompilandDumper : public PDBSymDumper {
     22 public:
     23   enum Flags { None = 0x0, Children = 0x1, Symbols = 0x2, Lines = 0x4 };
     24 
     25   CompilandDumper(LinePrinter &P);
     26 
     27   void start(const PDBSymbolCompiland &Symbol, CompilandDumpFlags flags);
     28 
     29   void dump(const PDBSymbolCompilandDetails &Symbol) override;
     30   void dump(const PDBSymbolCompilandEnv &Symbol) override;
     31   void dump(const PDBSymbolData &Symbol) override;
     32   void dump(const PDBSymbolFunc &Symbol) override;
     33   void dump(const PDBSymbolLabel &Symbol) override;
     34   void dump(const PDBSymbolThunk &Symbol) override;
     35   void dump(const PDBSymbolTypeTypedef &Symbol) override;
     36   void dump(const PDBSymbolUnknown &Symbol) override;
     37 
     38 private:
     39   LinePrinter &Printer;
     40 };
     41 }
     42 }
     43 
     44 #endif
     45