brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · df62604 Raw
43 lines · c
1//===- PrettyFunctionDumper.h --------------------------------- *- C++ --*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H10#define LLVM_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H11 12#include "llvm/DebugInfo/PDB/PDBSymDumper.h"13 14namespace llvm {15namespace pdb {16class LinePrinter;17 18class FunctionDumper : public PDBSymDumper {19public:20  FunctionDumper(LinePrinter &P);21 22  enum class PointerType { None, Pointer, Reference };23 24  void start(const PDBSymbolTypeFunctionSig &Symbol, const char *Name,25             PointerType Pointer);26  void start(const PDBSymbolFunc &Symbol, PointerType Pointer);27 28  void dump(const PDBSymbolTypeArray &Symbol) override;29  void dump(const PDBSymbolTypeBuiltin &Symbol) override;30  void dump(const PDBSymbolTypeEnum &Symbol) override;31  void dump(const PDBSymbolTypeFunctionArg &Symbol) override;32  void dump(const PDBSymbolTypePointer &Symbol) override;33  void dump(const PDBSymbolTypeTypedef &Symbol) override;34  void dump(const PDBSymbolTypeUDT &Symbol) override;35 36private:37  LinePrinter &Printer;38};39}40}41 42#endif43