summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/PDB
diff options
context:
space:
mode:
authorBob Haarman <llvm@inglorion.net>2017-05-25 18:04:17 +0000
committerBob Haarman <llvm@inglorion.net>2017-05-25 18:04:17 +0000
commitea91fafd33b59fa6e50e084b8ef247194cc945ea (patch)
tree7e3c0b9019ac59400724b44f8dbf4bd0dd125df3 /llvm/test/DebugInfo/PDB
parent69ae29b1d1da5368c1a49ef092e43b9877472be0 (diff)
downloadbcm5719-llvm-ea91fafd33b59fa6e50e084b8ef247194cc945ea.tar.gz
bcm5719-llvm-ea91fafd33b59fa6e50e084b8ef247194cc945ea.zip
[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
Diffstat (limited to 'llvm/test/DebugInfo/PDB')
-rw-r--r--llvm/test/DebugInfo/PDB/pdbdump-objfilename.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/PDB/pdbdump-objfilename.yaml b/llvm/test/DebugInfo/PDB/pdbdump-objfilename.yaml
new file mode 100644
index 00000000000..fac9ce9083c
--- /dev/null
+++ b/llvm/test/DebugInfo/PDB/pdbdump-objfilename.yaml
@@ -0,0 +1,14 @@
+# RUN: llvm-pdbdump yaml2pdb -pdb=%T/objfilename.pdb %s
+# RUN: llvm-pdbdump pdb2yaml -dbi-module-info %T/objfilename.pdb \
+# RUN: | FileCheck %s
+#
+# CHECK: DbiStream:
+# CHECK: Modules:
+# CHECK-NEXT: - Module:{{ *}}'C:\src\test.obj'
+# CHECK-NEXT: ObjFile:{{ *}}'C:\src\test.obj'
+---
+DbiStream:
+ Modules:
+ - Module: 'C:\src\test.obj'
+ ObjFile: 'C:\src\test.obj'
+...
OpenPOWER on IntegriCloud