mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-13 11:30:21 +00:00

Previously we did not have support for writing detailed module information for each module, as well as the symbol records. This patch adds support for this, and in doing so enables the ability to construct minimal PDBs from just a few lines of YAML. A test is added to illustrate this functionality. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297900 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
652 B
Plaintext
12 lines
652 B
Plaintext
; This testcase verifies that we can produce a minimal PDB, while
|
|
; serving as an example for how to construct a minimal PDB for other
|
|
; testcases. It takes as input a small fragment of hand-written yaml
|
|
; that specifies nothing about the PDB other than a definition of one
|
|
; symbol that it contains. Then it produces a PDB, and uses the
|
|
; resulting PDB to go back to yaml, and verify that the resulting yaml
|
|
; is identical.
|
|
|
|
; RUN: llvm-pdbdump yaml2pdb -pdb=%t.pdb %p/Inputs/one-symbol.yaml
|
|
; RUN: llvm-pdbdump pdb2yaml -minimal -dbi-module-syms -no-file-headers %t.pdb > %t.pdb.yaml
|
|
; RUN: diff -b %p/Inputs/one-symbol.yaml %t.pdb.yaml
|