summaryrefslogtreecommitdiff
path: root/tools/llvm-pdbutil/MinimalTypeDumper.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-07-17 23:59:44 +0000
committerReid Kleckner <rnk@google.com>2017-07-17 23:59:44 +0000
commit5c238d611ecefce692dbcb1b22d1352f991bba97 (patch)
treeb536bcbee7c075ba3d507e7cf925d8fac1e85751 /tools/llvm-pdbutil/MinimalTypeDumper.cpp
parente5574553c87289d826180fefe582afc414e01393 (diff)
[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
Diffstat (limited to 'tools/llvm-pdbutil/MinimalTypeDumper.cpp')
-rw-r--r--tools/llvm-pdbutil/MinimalTypeDumper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/llvm-pdbutil/MinimalTypeDumper.cpp b/tools/llvm-pdbutil/MinimalTypeDumper.cpp
index 9621320ea99..fc54a72be23 100644
--- a/tools/llvm-pdbutil/MinimalTypeDumper.cpp
+++ b/tools/llvm-pdbutil/MinimalTypeDumper.cpp
@@ -395,8 +395,7 @@ Error MinimalTypeDumpVisitor::visitKnownRecord(CVType &CVR,
Error MinimalTypeDumpVisitor::visitKnownRecord(CVType &CVR,
TypeServer2Record &TS) {
- P.formatLine("name = {0}, age = {1}, guid = {2}", TS.Name, TS.Age,
- fmt_guid(TS.Guid));
+ P.formatLine("name = {0}, age = {1}, guid = {2}", TS.Name, TS.Age, TS.Guid);
return Error::success();
}