commit | 741cc3531a6a372f8b5524362eb7930905e983bb | [log] [tgz] |
---|---|---|
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | Mon Aug 06 19:35:00 2018 +0000 |
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | Mon Aug 06 19:35:00 2018 +0000 |
tree | 0a90eb27065bb21273accebf4ff6dab242e95121 | |
parent | 7c4f4914e34a3844475deb5cc5a9fdd481361d3e [diff] [blame] |
[llvm-pdbutil] Support PDBs without a DBI stream Differential Revision: https://reviews.llvm.org/D50258 llvm-svn: 339045
diff --git a/llvm/tools/llvm-pdbutil/YAMLOutputStyle.cpp b/llvm/tools/llvm-pdbutil/YAMLOutputStyle.cpp index a7afbf1..521e27f 100644 --- a/llvm/tools/llvm-pdbutil/YAMLOutputStyle.cpp +++ b/llvm/tools/llvm-pdbutil/YAMLOutputStyle.cpp
@@ -191,6 +191,9 @@ if (!opts::pdb2yaml::DbiStream) return Error::success(); + if (!File.hasPDBDbiStream()) + return Error::success(); + auto DbiS = File.getPDBDbiStream(); if (!DbiS) return DbiS.takeError();