llvm.org GIT mirror llvm / d0b66db
[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 Bob Haarman 3 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
138138 void ScalarTraits::output(const APSInt &S, void *,
139139 llvm::raw_ostream &OS) {
140 S.print(OS, true);
140 S.print(OS, S.isSigned());
141141 }
143143 StringRef ScalarTraits::input(StringRef Scalar, void *Ctx, APSInt &S) {
784784 YAML: - Kind: LF_ENUMERATE
785785 YAML: Enumerator:
786786 YAML: Attrs: 3
787 YAML: Value: -32768
787 YAML: Value: 32768
788788 YAML: Name: eAnonymousUsage
789789 YAML: - Kind: LF_ENUMERATE
790790 YAML: Enumerator: