[llvm-pdbdump] [yaml2pdb] always include object file name in module info
authorBob Haarman <llvm@inglorion.net>
Thu, 25 May 2017 18:04:17 +0000 (18:04 +0000)
committerBob Haarman <llvm@inglorion.net>
Thu, 25 May 2017 18:04:17 +0000 (18:04 +0000)
commitea91fafd33b59fa6e50e084b8ef247194cc945ea
tree7e3c0b9019ac59400724b44f8dbf4bd0dd125df3
parent69ae29b1d1da5368c1a49ef092e43b9877472be0
[llvm-pdbdump] [yaml2pdb] always include object file name in module info

Summary:
Previously, the yaml2pdb subcommand of llvm-pdbdump only
included object file names in module info if a module info stream was
present. This change makes it so that we include the object file name
even if there is no module info stream for the module. As a result,
running
llvm-pdbdump pdb2yaml -dbi-module-info original.pdb > original.yaml &&
llvm-pdbdump yaml2pdb -pdb=new.pdb original.yaml && llvm-pdbdump
pdb2yaml -dbi-module-info new.pdb > new.yaml now produces identical
original.yaml and new.yaml files.

Reviewers: amccarth, zturner

Reviewed By: zturner

Subscribers: fhahn, llvm-commits

Differential Revision: https://reviews.llvm.org/D33463

llvm-svn: 303891
llvm/test/DebugInfo/PDB/pdbdump-objfilename.yaml [new file with mode: 0644]
llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp