diff options
author | Zachary Turner <zturner@google.com> | 2015-02-22 22:03:38 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-02-22 22:03:38 +0000 |
commit | 9a818ad193d19ef2f560e6da4b0fcf6748979fdb (patch) | |
tree | dc22e1c7f49c2326e9ec39be74c601925dc9b133 /llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp | |
parent | 87f4c90a5c0b38d497e975e8e2c54bbd6f4050a5 (diff) | |
download | llvm-9a818ad193d19ef2f560e6da4b0fcf6748979fdb.zip llvm-9a818ad193d19ef2f560e6da4b0fcf6748979fdb.tar.gz llvm-9a818ad193d19ef2f560e6da4b0fcf6748979fdb.tar.bz2 |
[llvm-pdbdump] Rewrite dumper using visitor pattern.
This increases the flexibility of how to dump different
symbol types -- necessary for context-sensitive formatting of
symbol types -- and also improves the modularity by allowing
the dumping to be implemented in the actual dumper, as opposed
to in the PDB library.
llvm-svn: 230184
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp index abb5163..ce569e2 100644 --- a/llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp +++ b/llvm/lib/DebugInfo/PDB/PDBSymbolLabel.cpp @@ -9,8 +9,7 @@ #include "llvm/DebugInfo/PDB/PDBSymbolLabel.h" -#include "llvm/DebugInfo/PDB/PDBSymbol.h" -#include "llvm/Support/Format.h" +#include "llvm/DebugInfo/PDB/PDBSymDumper.h" #include <utility> @@ -21,8 +20,6 @@ PDBSymbolLabel::PDBSymbolLabel(const IPDBSession &PDBSession, : PDBSymbol(PDBSession, std::move(Symbol)) {} void PDBSymbolLabel::dump(raw_ostream &OS, int Indent, - PDB_DumpLevel Level, PDB_DumpFlags Flags) const { - OS << stream_indent(Indent); - OS << "label [" << format_hex(getRelativeVirtualAddress(), 10) << "] " - << getName(); + PDBSymDumper &Dumper) const { + Dumper.dump(*this, OS, Indent); } |