summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-pdbdump/DIAExtras.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-01-28 00:33:00 +0000
committerZachary Turner <zturner@google.com>2015-01-28 00:33:00 +0000
commit4287b94988a59ef7341af8a7eb4a71370c96ac9c (patch)
treec209b3ce616691f3fb84021bb289c64ae2a87a8f /llvm/tools/llvm-pdbdump/DIAExtras.h
parent2145a67c7c56ffe580ec6b7098cc0a437fd8f3e6 (diff)
downloadbcm5719-llvm-4287b94988a59ef7341af8a7eb4a71370c96ac9c.tar.gz
bcm5719-llvm-4287b94988a59ef7341af8a7eb4a71370c96ac9c.zip
[llvm-pdbdump] Add support for printing source files and compilands.
This adds two command line options to llvm-pdbdump. --source-files prints a flat list of all source files in the PDB. --compilands prints a list of all compilands (e.g. object files) that the PDB knows about, and for each one, a list of source files that the compiland is composed of as well as a hash of the original source file. llvm-svn: 227276
Diffstat (limited to 'llvm/tools/llvm-pdbdump/DIAExtras.h')
-rw-r--r--llvm/tools/llvm-pdbdump/DIAExtras.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-pdbdump/DIAExtras.h b/llvm/tools/llvm-pdbdump/DIAExtras.h
index 6561a09b74f..aeef1972dc2 100644
--- a/llvm/tools/llvm-pdbdump/DIAExtras.h
+++ b/llvm/tools/llvm-pdbdump/DIAExtras.h
@@ -102,6 +102,8 @@ enum MachineTypeEnum {
MachineTypeCEE = IMAGE_FILE_MACHINE_CEE,
};
+enum HashAlgorithm { HashNone = 0, HashMD5 = 1, HashSHA1 = 2 };
+
// SymTagEnum has the unfortunate property that it is not only the name of
// the enum, but also the name of one of the values of the enum. So that we
// don't have to always type "enum SymTagEnum", we typedef this to a different
@@ -122,6 +124,8 @@ raw_ostream &operator<<(raw_ostream &Stream,
raw_ostream &operator<<(raw_ostream &Stream, CV_CPU_TYPE_e CpuType);
raw_ostream &operator<<(raw_ostream &Stream,
llvm::sys::windows::MachineTypeEnum CpuType);
+raw_ostream &operator<<(raw_ostream &Stream,
+ llvm::sys::windows::HashAlgorithm Algorithm);
}
#endif
OpenPOWER on IntegriCloud