[IC] Turn non-null MD on pointer loads to range MD on integer loads.
[oota-llvm.git] / tools / llvm-pdbdump / VariableDumper.h
1 //===- VariableDumper.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_VARIABLEDUMPER_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_VARIABLEDUMPER_H
12
13 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
14 #include "llvm/ADT/StringRef.h"
15
16 namespace llvm {
17
18 class VariableDumper : public PDBSymDumper {
19 public:
20   VariableDumper();
21
22   void start(const PDBSymbolData &Var, raw_ostream &OS, int Indent);
23
24   void dump(const PDBSymbolTypeBuiltin &Symbol, raw_ostream &OS,
25             int Indent) override;
26   void dump(const PDBSymbolTypeEnum &Symbol, raw_ostream &OS,
27             int Indent) override;
28   void dump(const PDBSymbolTypeFunctionSig &Symbol, raw_ostream &OS,
29             int Indent) override;
30   void dump(const PDBSymbolTypePointer &Symbol, raw_ostream &OS,
31             int Indent) override;
32   void dump(const PDBSymbolTypeTypedef &Symbol, raw_ostream &OS,
33             int Indent) override;
34   void dump(const PDBSymbolTypeUDT &Symbol, raw_ostream &OS,
35             int Indent) override;
36
37 private:
38   void dumpSymbolTypeAndName(const PDBSymbol &Type, StringRef Name,
39                              raw_ostream &OS);
40 };
41 }
42
43 #endif