summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2017-06-15 23:56:19 +0000
committerZachary Turner <zturner@google.com>2017-06-15 23:56:19 +0000
commit4e950647fb56f4ed019cfb2c12ce62bbdf002cf9 (patch)
tree399b51deb3b98a10bc1da3ffd28b7b1aa8762243 /llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
parent948a59661787f151f70ac59363729d63f92c56e3 (diff)
downloadbcm5719-llvm-4e950647fb56f4ed019cfb2c12ce62bbdf002cf9.tar.gz
bcm5719-llvm-4e950647fb56f4ed019cfb2c12ce62bbdf002cf9.zip
[llvm-pdbutil] Add support for dumping lines and inlinee lines.
llvm-svn: 305529
Diffstat (limited to 'llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp')
-rw-r--r--llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
index 9dcad07a10c..cbda8e6dbf5 100644
--- a/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
+++ b/llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
@@ -334,7 +334,15 @@ cl::opt<bool> DumpModules("modules", cl::desc("dump compiland information"),
cl::cat(FileOptions), cl::sub(RawSubcommand));
cl::opt<bool> DumpModuleFiles(
"files",
- cl::desc("for each module dumped, dump the contributing source files"),
+ cl::desc("Dump the source files that contribute to each module's."),
+ cl::cat(FileOptions), cl::sub(RawSubcommand));
+cl::opt<bool> DumpLines(
+ "l",
+ cl::desc("dump source file/line information (DEBUG_S_LINES subsection)"),
+ cl::cat(FileOptions), cl::sub(RawSubcommand));
+cl::opt<bool> DumpInlineeLines(
+ "il",
+ cl::desc("dump inlinee line information (DEBUG_S_INLINEELINES subsection)"),
cl::cat(FileOptions), cl::sub(RawSubcommand));
// MISCELLANEOUS OPTIONS
@@ -893,6 +901,8 @@ int main(int argc_, const char *argv_[]) {
if (opts::RawSubcommand) {
if (opts::raw::RawAll) {
+ opts::raw::DumpLines = true;
+ opts::raw::DumpInlineeLines = true;
opts::raw::DumpIds = true;
opts::raw::DumpPublics = true;
opts::raw::DumpSectionContribs = true;
OpenPOWER on IntegriCloud