OSDN Git Service

[llvm-pdbutil] Add the ability to dump the dependency tree for a type
authorZachary Turner <zturner@google.com>
Fri, 30 Jun 2017 18:15:47 +0000 (18:15 +0000)
committerZachary Turner <zturner@google.com>
Fri, 30 Jun 2017 18:15:47 +0000 (18:15 +0000)
commitf330d3e627aed0769b9cfa6a558ec2a9b250e74c
treea1936e357a1615d1febd0523024ed7a1f58504b7
parent8e8ec784f8b352e455e971eebc55cc4b0bc51dc0
[llvm-pdbutil] Add the ability to dump the dependency tree for a type

Previously we had the -type-index option which would dump the record of
a single, but we had no way to follow the dependency graph backwards and
also dump all dependent types.

Having this option makes test-writing better, because we can limit the
test to only those records that are of importance for the thing we're
trying to test, which allows us to use things like CHECK-NEXT to reduce
fragility.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306852 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo/CodeView/TypeIndexDiscovery.h
lib/DebugInfo/CodeView/TypeIndexDiscovery.cpp
test/tools/llvm-pdbdump/partial-type-stream.test [new file with mode: 0644]
tools/llvm-pdbutil/DumpOutputStyle.cpp
tools/llvm-pdbutil/DumpOutputStyle.h
tools/llvm-pdbutil/MinimalTypeDumper.cpp
tools/llvm-pdbutil/llvm-pdbutil.cpp
tools/llvm-pdbutil/llvm-pdbutil.h