[PATCH] D33417: Implement various flavors of type merging

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 22 09:53:01 PDT 2017


zturner created this revision.

Our previous algorithm assumed that types and id records were in a single unified stream.  For type information in object files this is the case, but for type information in PDB files the IDs and types have already been split out.  In that case, we need a mode where we can assume that a given type stream contains only type records or only id records.  This patch adds such a mode.


https://reviews.llvm.org/D33417

Files:
  lld/COFF/PDB.cpp
  llvm/include/llvm/DebugInfo/CodeView/TypeStreamMerger.h
  llvm/include/llvm/DebugInfo/PDB/Native/TpiStream.h
  llvm/lib/DebugInfo/CodeView/TypeStreamMerger.cpp
  llvm/lib/DebugInfo/PDB/Native/TpiStream.cpp
  llvm/test/DebugInfo/PDB/Inputs/merge-ids-1.yaml
  llvm/test/DebugInfo/PDB/Inputs/merge-ids-2.yaml
  llvm/test/DebugInfo/PDB/Inputs/merge-ids-and-types-1.yaml
  llvm/test/DebugInfo/PDB/Inputs/merge-ids-and-types-2.yaml
  llvm/test/DebugInfo/PDB/Inputs/merge-types-1.yaml
  llvm/test/DebugInfo/PDB/Inputs/merge-types-2.yaml
  llvm/test/DebugInfo/PDB/Inputs/merge1.yaml
  llvm/test/DebugInfo/PDB/Inputs/merge2.yaml
  llvm/test/DebugInfo/PDB/pdbdump-merge-ids-and-types.test
  llvm/test/DebugInfo/PDB/pdbdump-mergeids.test
  llvm/test/DebugInfo/PDB/pdbdump-mergetypes.test
  llvm/tools/llvm-pdbdump/llvm-pdbdump.cpp
  llvm/tools/llvm-readobj/COFFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33417.99784.patch
Type: text/x-patch
Size: 53082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170522/6adfd4a4/attachment.bin>


More information about the llvm-commits mailing list