summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-pdbutil/llvm-pdbutil.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-06-23 19:54:44 +0000
committerZachary Turner <zturner@google.com>2017-06-23 19:54:44 +0000
commit6b124f29e727da3f3d27112b7ded82b404a68b2f (patch)
tree114ef7bf288195112e97ded242f269477dd82eb4 /llvm/tools/llvm-pdbutil/llvm-pdbutil.h
parent717021772bc8b4b1ee01c340daa0a718aa0059fb (diff)
downloadbcm5719-llvm-6b124f29e727da3f3d27112b7ded82b404a68b2f.tar.gz
bcm5719-llvm-6b124f29e727da3f3d27112b7ded82b404a68b2f.zip
[llvm-pdbutil] Add the ability to dump raw bytes from the file.
Normally we can only make sense of the content of a PDB in terms of streams and blocks, but in some cases it may be useful to dump bytes at a specific absolute file offset. For example, if you know that some interesting data is at a particular location and you want to see some surrounding data. llvm-svn: 306146
Diffstat (limited to 'llvm/tools/llvm-pdbutil/llvm-pdbutil.h')
-rw-r--r--llvm/tools/llvm-pdbutil/llvm-pdbutil.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/tools/llvm-pdbutil/llvm-pdbutil.h b/llvm/tools/llvm-pdbutil/llvm-pdbutil.h
index 811037ad622..78cea8fba9c 100644
--- a/llvm/tools/llvm-pdbutil/llvm-pdbutil.h
+++ b/llvm/tools/llvm-pdbutil/llvm-pdbutil.h
@@ -93,11 +93,13 @@ extern llvm::cl::opt<uint32_t> ClassRecursionDepth;
}
namespace bytes {
-struct BlockRange {
- uint32_t Min;
- llvm::Optional<uint32_t> Max;
+struct NumberRange {
+ uint64_t Min;
+ llvm::Optional<uint64_t> Max;
};
-extern llvm::Optional<BlockRange> DumpBlockRange;
+
+extern llvm::Optional<NumberRange> DumpBlockRange;
+extern llvm::Optional<NumberRange> DumpByteRange;
extern llvm::cl::list<std::string> DumpStreamData;
} // namespace bytes
OpenPOWER on IntegriCloud