summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-22 22:03:38 +0000
committerZachary Turner <zturner@google.com>2015-02-22 22:03:38 +0000
commit9a818ad193d19ef2f560e6da4b0fcf6748979fdb (patch)
treedc22e1c7f49c2326e9ec39be74c601925dc9b133 /llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp
parent87f4c90a5c0b38d497e975e8e2c54bbd6f4050a5 (diff)
downloadbcm5719-llvm-9a818ad193d19ef2f560e6da4b0fcf6748979fdb.tar.gz
bcm5719-llvm-9a818ad193d19ef2f560e6da4b0fcf6748979fdb.zip
[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/PDBSymbolCustom.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp
index 68f2b45194c..1b6b50b6dd0 100644
--- a/llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp
+++ b/llvm/lib/DebugInfo/PDB/PDBSymbolCustom.cpp
@@ -11,6 +11,7 @@
#include "llvm/DebugInfo/PDB/IPDBRawSymbol.h"
#include "llvm/DebugInfo/PDB/PDBSymbol.h"
+#include "llvm/DebugInfo/PDB/PDBSymDumper.h"
#include <utility>
@@ -25,4 +26,6 @@ void PDBSymbolCustom::getDataBytes(llvm::SmallVector<uint8_t, 32> &bytes) {
}
void PDBSymbolCustom::dump(raw_ostream &OS, int Indent,
- PDB_DumpLevel Level, PDB_DumpFlags Flags) const {} \ No newline at end of file
+ PDBSymDumper &Dumper) const {
+ Dumper.dump(*this, OS, Indent);
+} \ No newline at end of file
OpenPOWER on IntegriCloud