summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-05-13 17:48:24 +0000
committerReid Kleckner <rnk@google.com>2016-05-13 17:48:24 +0000
commitbab3fab806bf0eebf5d251f03e04a51803ee2351 (patch)
treee6278084f0ee9e7c1230f232fce8f4359edd57bb /llvm/lib/DebugInfo/CodeView
parent97ae10c67c105d8b0562b409f253289d6a96b3db (diff)
downloadbcm5719-llvm-bab3fab806bf0eebf5d251f03e04a51803ee2351.tar.gz
bcm5719-llvm-bab3fab806bf0eebf5d251f03e04a51803ee2351.zip
[codeview] Dump the type index on the first line of each record
This will make it easier to write FileCheck tests. llvm-svn: 269444
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView')
-rw-r--r--llvm/lib/DebugInfo/CodeView/TypeDumper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp b/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp
index 6b47eae63ba..d7f21d227ed 100644
--- a/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp
+++ b/llvm/lib/DebugInfo/CodeView/TypeDumper.cpp
@@ -254,10 +254,10 @@ void CVTypeDumperImpl::visitTypeBegin(TypeLeafKind Leaf,
// Reset Name to the empty string. If the visitor sets it, we know it.
Name = "";
- W.startLine() << getLeafTypeName(Leaf) << " {\n";
+ W.startLine() << getLeafTypeName(Leaf) << " ("
+ << HexNumber(CVTD.getNextTypeIndex()) << ") {\n";
W.indent();
W.printEnum("TypeLeafKind", unsigned(Leaf), makeArrayRef(LeafTypeNames));
- W.printHex("TypeIndex", CVTD.getNextTypeIndex());
}
void CVTypeDumperImpl::visitTypeEnd(TypeLeafKind Leaf,
OpenPOWER on IntegriCloud