OSDN Git Service

[codeview] Fix YAML for LF_TYPESERVER2 by hoisting PDB_UniqueId
authorReid Kleckner <rnk@google.com>
Mon, 17 Jul 2017 23:59:44 +0000 (23:59 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 17 Jul 2017 23:59:44 +0000 (23:59 +0000)
commit5c238d611ecefce692dbcb1b22d1352f991bba97
treeb536bcbee7c075ba3d507e7cf925d8fac1e85751
parente5574553c87289d826180fefe582afc414e01393
[codeview] Fix YAML for LF_TYPESERVER2 by hoisting PDB_UniqueId

Summary:
We were treating the GUIDs in TypeServer2Record as strings, and the
non-ASCII bytes in the GUID would not round-trip through YAML.

We already had the PDB_UniqueId type portably represent a Windows GUID,
but we need to hoist that up to the DebugInfo/CodeView library so that
we can use it in the TypeServer2Record as well as in PDB parsing code.

Reviewers: inglorion, amccarth

Subscribers: llvm-commits, hiraditya

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308234 91177308-0d34-0410-b5e6-96231b3b80d8
28 files changed:
include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h
include/llvm/DebugInfo/CodeView/Formatters.h
include/llvm/DebugInfo/CodeView/GUID.h [new file with mode: 0644]
include/llvm/DebugInfo/CodeView/TypeRecord.h
include/llvm/DebugInfo/PDB/DIA/DIARawSymbol.h
include/llvm/DebugInfo/PDB/IPDBRawSymbol.h
include/llvm/DebugInfo/PDB/Native/Formatters.h
include/llvm/DebugInfo/PDB/Native/InfoStream.h
include/llvm/DebugInfo/PDB/Native/InfoStreamBuilder.h
include/llvm/DebugInfo/PDB/Native/NativeExeSymbol.h
include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h
include/llvm/DebugInfo/PDB/Native/RawTypes.h
include/llvm/DebugInfo/PDB/PDBExtras.h
include/llvm/ObjectYAML/CodeViewYAMLTypes.h
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
lib/DebugInfo/CodeView/Formatters.cpp
lib/DebugInfo/CodeView/TypeDumpVisitor.cpp
lib/DebugInfo/PDB/DIA/DIARawSymbol.cpp
lib/DebugInfo/PDB/Native/InfoStream.cpp
lib/DebugInfo/PDB/Native/InfoStreamBuilder.cpp
lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp
lib/DebugInfo/PDB/PDBExtras.cpp
lib/ObjectYAML/CodeViewYAMLTypes.cpp
test/ObjectYAML/CodeView/guid.yaml [new file with mode: 0644]
tools/llvm-pdbutil/MinimalTypeDumper.cpp
tools/llvm-pdbutil/PdbYaml.cpp
tools/llvm-pdbutil/PdbYaml.h