2017-01-14 15:37:50 +00:00
|
|
|
//===- PrettyFunctionDumper.h --------------------------------- *- C++ --*-===//
|
2015-05-27 18:44:32 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2017-01-14 15:37:50 +00:00
|
|
|
#ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H
|
|
|
|
#define LLVM_TOOLS_LLVMPDBDUMP_PRETTYFUNCTIONDUMPER_H
|
2015-05-27 18:44:32 +00:00
|
|
|
|
|
|
|
#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
2016-07-23 20:41:05 +00:00
|
|
|
namespace pdb {
|
2015-05-27 18:44:32 +00:00
|
|
|
class LinePrinter;
|
|
|
|
|
|
|
|
class FunctionDumper : public PDBSymDumper {
|
|
|
|
public:
|
|
|
|
FunctionDumper(LinePrinter &P);
|
|
|
|
|
|
|
|
enum class PointerType { None, Pointer, Reference };
|
|
|
|
|
|
|
|
void start(const PDBSymbolTypeFunctionSig &Symbol, const char *Name,
|
|
|
|
PointerType Pointer);
|
|
|
|
void start(const PDBSymbolFunc &Symbol, PointerType Pointer);
|
|
|
|
|
|
|
|
void dump(const PDBSymbolTypeArray &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypeBuiltin &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypeEnum &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypeFunctionArg &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypePointer &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypeTypedef &Symbol) override;
|
|
|
|
void dump(const PDBSymbolTypeUDT &Symbol) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
LinePrinter &Printer;
|
|
|
|
};
|
|
|
|
}
|
2016-07-23 20:41:05 +00:00
|
|
|
}
|
2015-05-27 18:44:32 +00:00
|
|
|
|
|
|
|
#endif
|