diff options
| author | Zachary Turner <zturner@google.com> | 2017-06-22 20:58:11 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-06-22 20:58:11 +0000 |
| commit | 9940203a2cffb678ee3c393dda03023bdf137646 (patch) | |
| tree | d6a7654c415e27a0a925ebd49060f58baba9e581 /llvm/tools/llvm-pdbutil/llvm-pdbutil.h | |
| parent | 7df69958f83637c2ebdc33938d25788e7a04ef50 (diff) | |
| download | bcm5719-llvm-9940203a2cffb678ee3c393dda03023bdf137646.tar.gz bcm5719-llvm-9940203a2cffb678ee3c393dda03023bdf137646.zip | |
[llvm-pdbutil] Create a "bytes" subcommand.
This idea originally came about when I was doing some deep
investigation of why certain bytes in a PDB that we round-tripped
differed from their original bytes in the source PDB. I found
myself having to hack up the code in many places to dump the
bytes of this substream, or that record. It would be nice if
we could just do this for every possible stream, substream,
debug chunk type, etc.
It doesn't make sense to put this under dump because there's just
so many options that would detract from the more common use case
of just dumping deserialized records. So making a new subcommand
seems like the most logical course of action. In doing so, we
already have two command line options that are suitable for this
new subcommand, so start out by moving them there.
llvm-svn: 306056
Diffstat (limited to 'llvm/tools/llvm-pdbutil/llvm-pdbutil.h')
| -rw-r--r-- | llvm/tools/llvm-pdbutil/llvm-pdbutil.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/tools/llvm-pdbutil/llvm-pdbutil.h b/llvm/tools/llvm-pdbutil/llvm-pdbutil.h index c18d1b79549..811037ad622 100644 --- a/llvm/tools/llvm-pdbutil/llvm-pdbutil.h +++ b/llvm/tools/llvm-pdbutil/llvm-pdbutil.h @@ -92,16 +92,19 @@ extern llvm::cl::opt<ClassDefinitionFormat> ClassFormat; extern llvm::cl::opt<uint32_t> ClassRecursionDepth; } -namespace dump { +namespace bytes { struct BlockRange { uint32_t Min; llvm::Optional<uint32_t> Max; }; +extern llvm::Optional<BlockRange> DumpBlockRange; +extern llvm::cl::list<std::string> DumpStreamData; +} // namespace bytes + +namespace dump { extern llvm::cl::opt<bool> DumpSummary; extern llvm::cl::opt<bool> DumpStreams; -extern llvm::Optional<BlockRange> DumpBlockRange; -extern llvm::cl::list<std::string> DumpStreamData; extern llvm::cl::opt<bool> DumpLines; extern llvm::cl::opt<bool> DumpInlineeLines; |

