Revert "Revert "Fix merges of non-zero vector stores""
[oota-llvm.git] / tools / llvm-pdbdump / FunctionDumper.h
1 //===- FunctionDumper.h --------------------------------------- *- 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_FUNCTIONDUMPER_H
11 #define LLVM_TOOLS_LLVMPDBDUMP_FUNCTIONDUMPER_H
12
13 #include "llvm/DebugInfo/PDB/PDBSymDumper.h"
14
15 namespace llvm {
16
17 class LinePrinter;
18
19 class FunctionDumper : public PDBSymDumper {
20 public:
21   FunctionDumper(LinePrinter &P);
22
23   enum class PointerType { None, Pointer, Reference };
24
25   void start(const PDBSymbolTypeFunctionSig &Symbol, const char *Name,
26              PointerType Pointer);
27   void start(const PDBSymbolFunc &Symbol, PointerType Pointer);
28
29   void dump(const PDBSymbolTypeArray &Symbol) override;
30   void dump(const PDBSymbolTypeBuiltin &Symbol) override;
31   void dump(const PDBSymbolTypeEnum &Symbol) override;
32   void dump(const PDBSymbolTypeFunctionArg &Symbol) override;
33   void dump(const PDBSymbolTypePointer &Symbol) override;
34   void dump(const PDBSymbolTypeTypedef &Symbol) override;
35   void dump(const PDBSymbolTypeUDT &Symbol) override;
36
37 private:
38   LinePrinter &Printer;
39 };
40 }
41
42 #endif