summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-pdbutil/llvm-pdbutil.h
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-07-26 00:40:36 +0000
committerReid Kleckner <rnk@google.com>2017-07-26 00:40:36 +0000
commit14d90fd05cbed5fd3fcee492f072a4e5816f20b5 (patch)
tree53164d09de3887dbb7ef6d157766a9d9c801cc5d /llvm/tools/llvm-pdbutil/llvm-pdbutil.h
parentb4dbe7231e7eb1852248f6ed29fb57d9e9af06de (diff)
downloadbcm5719-llvm-14d90fd05cbed5fd3fcee492f072a4e5816f20b5.tar.gz
bcm5719-llvm-14d90fd05cbed5fd3fcee492f072a4e5816f20b5.zip
[PDB] Improve GSI hash table dumping for publics and globals
The PDB "symbol stream" actually contains symbol records for the publics and the globals stream. The globals and publics streams are essentially hash tables that point into a single stream of records. In order to match cvdump's behavior, we need to only dump symbol records referenced from the hash table. This patch implements that, and then implements global stream dumping, since it's just a subset of public stream dumping. Now we shouldn't see S_PROCREF or S_GDATA32 records when dumping publics, and instead we should see those record in the globals stream. llvm-svn: 309066
Diffstat (limited to 'llvm/tools/llvm-pdbutil/llvm-pdbutil.h')
-rw-r--r--llvm/tools/llvm-pdbutil/llvm-pdbutil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-pdbutil/llvm-pdbutil.h b/llvm/tools/llvm-pdbutil/llvm-pdbutil.h
index 4aeff99d6c7..0c01fae911c 100644
--- a/llvm/tools/llvm-pdbutil/llvm-pdbutil.h
+++ b/llvm/tools/llvm-pdbutil/llvm-pdbutil.h
@@ -143,6 +143,8 @@ extern llvm::cl::opt<bool> DumpIdExtras;
extern llvm::cl::list<uint32_t> DumpIdIndex;
extern llvm::cl::opt<bool> DumpSymbols;
extern llvm::cl::opt<bool> DumpSymRecordBytes;
+extern llvm::cl::opt<bool> DumpGlobals;
+extern llvm::cl::opt<bool> DumpGlobalExtras;
extern llvm::cl::opt<bool> DumpPublics;
extern llvm::cl::opt<bool> DumpPublicExtras;
extern llvm::cl::opt<bool> DumpSectionContribs;
OpenPOWER on IntegriCloud