aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.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/PDBSymbolCompilandEnv.cpp
parent87f4c90a5c0b38d497e975e8e2c54bbd6f4050a5 (diff)
downloadllvm-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/PDBSymbolCompilandEnv.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp b/llvm/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp
index b44dc57..c54b8fb 100644
--- a/llvm/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp
+++ b/llvm/lib/DebugInfo/PDB/PDBSymbolCompilandEnv.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>
@@ -26,4 +27,6 @@ std::string PDBSymbolCompilandEnv::getValue() const {
}
void PDBSymbolCompilandEnv::dump(raw_ostream &OS, int Indent,
- PDB_DumpLevel Level, PDB_DumpFlags Flags) const {}
+ PDBSymDumper &Dumper) const {
+ Dumper.dump(*this, OS, Indent);
+}