diff options
| author | Zachary Turner <zturner@google.com> | 2017-01-11 00:35:43 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-01-11 00:35:43 +0000 |
| commit | a9054ddd9ccf8d1a94b4c2a8966bcf44874311ae (patch) | |
| tree | 73ac0a5c658355fa30ae9ed3ddce06efa8d0e2d8 /llvm/tools/llvm-pdbdump/PrettyVariableDumper.h | |
| parent | c640b76db50f5b0593ddd4a2387ffb93296d266f (diff) | |
| download | bcm5719-llvm-a9054ddd9ccf8d1a94b4c2a8966bcf44874311ae.tar.gz bcm5719-llvm-a9054ddd9ccf8d1a94b4c2a8966bcf44874311ae.zip | |
[CodeView/PDB] Rename a bunch of files.
We were starting to get some name clashes between llvm-pdbdump
and the common CodeView framework, so I took this opportunity
to rename a bunch of files to more accurately describe their
usage. This also helps in llvm-pdbdump to distinguish
between different files and whether they are used for pretty
dump mode or raw dump mode.
llvm-svn: 291627
Diffstat (limited to 'llvm/tools/llvm-pdbdump/PrettyVariableDumper.h')
| -rw-r--r-- | llvm/tools/llvm-pdbdump/PrettyVariableDumper.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/llvm/tools/llvm-pdbdump/PrettyVariableDumper.h b/llvm/tools/llvm-pdbdump/PrettyVariableDumper.h new file mode 100644 index 00000000000..a122bb86058 --- /dev/null +++ b/llvm/tools/llvm-pdbdump/PrettyVariableDumper.h @@ -0,0 +1,44 @@ +//===- PrettyVariableDumper.h - PDBSymDumper variable dumper ----*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_TOOLS_LLVMPDBDUMP_PRETTYVARIABLEDUMPER_H +#define LLVM_TOOLS_LLVMPDBDUMP_PRETTYVARIABLEDUMPER_H + +#include "llvm/DebugInfo/PDB/PDBSymDumper.h" + +namespace llvm { + +class StringRef; + +namespace pdb { + +class LinePrinter; + +class VariableDumper : public PDBSymDumper { +public: + VariableDumper(LinePrinter &P); + + void start(const PDBSymbolData &Var); + + void dump(const PDBSymbolTypeBuiltin &Symbol) override; + void dump(const PDBSymbolTypeEnum &Symbol) override; + void dump(const PDBSymbolTypeFunctionSig &Symbol) override; + void dump(const PDBSymbolTypePointer &Symbol) override; + void dump(const PDBSymbolTypeTypedef &Symbol) override; + void dump(const PDBSymbolTypeUDT &Symbol) override; + +private: + void dumpSymbolTypeAndName(const PDBSymbol &Type, StringRef Name); + bool tryDumpFunctionPointer(const PDBSymbol &Type, StringRef Name); + + LinePrinter &Printer; +}; +} +} +#endif |

