1 //===- MinimalSymbolDumper.h ---------------------------------- *- C++ --*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_TOOLS_LLVMPDBUTIL_MINIMAL_SYMBOL_DUMPER_H
11 #define LLVM_TOOLS_LLVMPDBUTIL_MINIMAL_SYMBOL_DUMPER_H
13 #include "llvm/DebugInfo/CodeView/SymbolVisitorCallbacks.h"
17 class LazyRandomTypeCollection;
23 class MinimalSymbolDumper : public codeview::SymbolVisitorCallbacks {
25 MinimalSymbolDumper(LinePrinter &P, bool RecordBytes,
26 codeview::LazyRandomTypeCollection &Ids,
27 codeview::LazyRandomTypeCollection &Types)
28 : P(P), RecordBytes(RecordBytes), Ids(Ids), Types(Types) {}
30 Error visitSymbolBegin(codeview::CVSymbol &Record) override;
31 Error visitSymbolBegin(codeview::CVSymbol &Record, uint32_t Offset) override;
32 Error visitSymbolEnd(codeview::CVSymbol &Record) override;
34 #define SYMBOL_RECORD(EnumName, EnumVal, Name) \
35 virtual Error visitKnownRecord(codeview::CVSymbol &CVR, \
36 codeview::Name &Record) override;
37 #define SYMBOL_RECORD_ALIAS(EnumName, EnumVal, Name, AliasName)
38 #include "llvm/DebugInfo/CodeView/CodeViewSymbols.def"
41 std::string typeOrIdIndex(codeview::TypeIndex TI, bool IsType) const;
43 std::string typeIndex(codeview::TypeIndex TI) const;
44 std::string idIndex(codeview::TypeIndex TI) const;
48 codeview::LazyRandomTypeCollection &Ids;
49 codeview::LazyRandomTypeCollection &Types;