summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-09-09 19:00:49 +0000
committerZachary Turner <zturner@google.com>2016-09-09 19:00:49 +0000
commit36efbfa6d81b3d15144bb2d5683f654a6b4246d4 (patch)
tree6c250f111c6d63136bc7b2983479523bcb5f1d77 /llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
parentc236e5a0f1b9b8118428bec5a7adf3e3efc86cf1 (diff)
downloadbcm5719-llvm-36efbfa6d81b3d15144bb2d5683f654a6b4246d4.tar.gz
bcm5719-llvm-36efbfa6d81b3d15144bb2d5683f654a6b4246d4.zip
[pdb] Print out some more info when dumping a raw stream.
We have various command line options that print the type of a stream, the size of a stream, etc but nowhere that it can all be viewed together. Since a previous patch introduced the ability to dump the bytes of a stream, this seems like a good place to present a full view of the stream's properties including its size, what kind of data it represents, and the blocks it occupies. So I added the ability to print that information to the -stream-data command line option. llvm-svn: 281077
Diffstat (limited to 'llvm/tools/llvm-pdbdump/LLVMOutputStyle.h')
-rw-r--r--llvm/tools/llvm-pdbdump/LLVMOutputStyle.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-pdbdump/LLVMOutputStyle.h b/llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
index 94430252f97..f5740ec458e 100644
--- a/llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
+++ b/llvm/tools/llvm-pdbdump/LLVMOutputStyle.h
@@ -25,6 +25,8 @@ public:
Error dump() override;
private:
+ void discoverStreamPurposes();
+
Error dumpFileHeaders();
Error dumpStreamSummary();
Error dumpFreePageMap();
@@ -47,6 +49,7 @@ private:
PDBFile &File;
ScopedPrinter P;
codeview::CVTypeDumper Dumper;
+ std::vector<std::string> StreamPurposes;
};
}
}
OpenPOWER on IntegriCloud