OSDN Git Service

Merge "Take HOST_PREFER_32_BIT into account"
[android-x86/external-llvm.git] / tools / llvm-pdbdump / TypeDumper.h
1 //===- TypeDumper.h - PDBSymDumper implementation for types *- 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_TYPEDUMPER_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_TYPEDUMPER_H
12
13 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
14
15 namespace llvm {
16
17 class TypeDumper : public PDBSymDumper {
18 public:
19   TypeDumper(bool Inline, bool ClassDefs);
20
21   void start(const PDBSymbolExe &Exe, raw_ostream &OS, int Indent);
22
23   void dump(const PDBSymbolTypeEnum &Symbol, raw_ostream &OS,
24             int Indent) override;
25   void dump(const PDBSymbolTypeFunctionSig &Symbol, raw_ostream &OS,
26             int Indent) override;
27   void dump(const PDBSymbolTypeTypedef &Symbol, raw_ostream &OS,
28             int Indent) override;
29   void dump(const PDBSymbolTypeUDT &Symbol, raw_ostream &OS,
30             int Indent) override;
31
32 private:
33   bool InlineDump;
34   bool FullClassDefs;
35 };
36 }
37
38 #endif