]> granicus.if.org Git - llvm/commit
[codeview] respect signedness of APSInts when printing to YAML
authorBob Haarman <llvm@inglorion.net>
Wed, 21 Jun 2017 22:31:52 +0000 (22:31 +0000)
committerBob Haarman <llvm@inglorion.net>
Wed, 21 Jun 2017 22:31:52 +0000 (22:31 +0000)
commitd0b66dbf40bd486836b49f6b4b13b972a36d37f4
tree9ff0d098f9f677621c8f53ae7e83e428935148e6
parent6189e6473978f53a45b97d4a2513cb24007f4c38
[codeview] respect signedness of APSInts when printing to YAML

Summary:
This fixes a bug where we always treat APSInts in Codeview as
signed when writing them to YAML. One symptom of this problem is that
llvm-pdbdump raw would show Enumerator Values that differ between the
original PDB and a PDB that has been round-tripped through YAML.

Reviewers: zturner

Reviewed By: zturner

Subscribers: llvm-commits, fhahn

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305965 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ObjectYAML/CodeViewYAMLTypes.cpp
test/DebugInfo/PDB/pdbdump-yaml-types.test